Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse Spring IDE plugin add folder

 
Jeff Storey
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to add an entire folder to the eclipse Spring IDE plugin so when new files are added they are automatically added to the .springbeans file? I know I can scan the directory but I don't want to do a rescan each time I add a new file or manually update the .springbeans file.

thanks,
Jeff
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff Storey wrote:I know I can scan the directory but I don't want to do a rescan each time I add a new file or manually update the .springbeans file.


Why? Stuff like that is common when you use build tools such as Ant.

Although, being as how this is Spring, it should be fairly simple to define a "scanning bean" that runs the directory, finds all the eligible classes, and registers them into the Spring framework when the app starts up.
 
Jeff Storey
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My thought was if I'm working in Eclipse and add a new spring bean it will automatically get validated by the Spring builder and I won't need to add it to the .springbeans file in Eclipse. I don't think this is really related to a build script (i.e. ant, maven), just really for ease of use in Eclipse.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic