Re: Eclipse & target directory
Here's a quick and dirty Eclipse Monkey (http://www.eclipse.org/dash/) script to make all target folders derived. Update site for Eclipse Monkey is http://download.eclipse.org/technology/dash/update/ --- Came wiffling through the eclipsey wood --- /* * Menu: Maven > Make Maven Targets Derived * Kudos: Donnchadh Ó Donnabháin * License: EPL 1.0 * DOM: http://download.eclipse.org/technology/dash/update/org.eclipse.dash.doms */ function main() { var files = resources.filesMatching(".*/pom\\.xml"); var targetFolder; for each( file in files ) { if (targetFolder = file.eclipseObject.parent.findMember("target")) { targetFolder.setDerived(true); } } } --- And burbled as it ran! --- Once you've installed eclipse monkey, copy the contents of this message and select 'Monkey > Paste Script'. You will now have a new menu item 'Monkey > Maven > Make Maven Targets Derived' As I said it's quick and dirty so feel free to improve on it. Donnchadh On 10/17/06, Daniel Serodio <[EMAIL PROTECTED]> wrote: Douglas Ferguson wrote: > Awesome! Thanks. > The only problem is that this breaks when the "target" folder is re-created (for example, if you run "mvn clean", because this information ("is derived") is stored in the folder's metadata. I've requested the ``ability to "remember" that a resource is derived when said resource is deleted´´ (https://bugs.eclipse.org/bugs/show_bug.cgi?id=154089), but it seems like it's not going to happen (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=150578). HTH, Daniel Serodio > Where does it store this value? I can't find it in any of the config files for the project. > > Could this be added to eclipse:eclipse? > > -Original Message- > From: Donnchadh Ó Donnabháin [mailto:[EMAIL PROTECTED] > Sent: Friday, September 08, 2006 8:48 AM > To: Maven Users List > Subject: Re: Eclipse & target directory > > In eclipse right-click on the target folder and select 'Properties...' > Then, in the Info page, check the 'derived' check box. This should > exlude it from searches and resource lookups. Probably error reporting > too but I haven't verified that > > Donnchadh > > On 9/5/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > >> When using eclipse on war projects, the target directory will start to >> collect copies of jsp files, from war:war commands, etc. >> >> >> Is there a way to have eclipse ignore the files when searching and >> reporting errors? >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse & target directory
Douglas Ferguson wrote: > Awesome! Thanks. > The only problem is that this breaks when the "target" folder is re-created (for example, if you run "mvn clean", because this information ("is derived") is stored in the folder's metadata. I've requested the ``ability to "remember" that a resource is derived when said resource is deleted´´ (https://bugs.eclipse.org/bugs/show_bug.cgi?id=154089), but it seems like it's not going to happen (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=150578). HTH, Daniel Serodio > Where does it store this value? I can't find it in any of the config files > for the project. > > Could this be added to eclipse:eclipse? > > -Original Message- > From: Donnchadh Ó Donnabháin [mailto:[EMAIL PROTECTED] > Sent: Friday, September 08, 2006 8:48 AM > To: Maven Users List > Subject: Re: Eclipse & target directory > > In eclipse right-click on the target folder and select 'Properties...' > Then, in the Info page, check the 'derived' check box. This should > exlude it from searches and resource lookups. Probably error reporting > too but I haven't verified that > > Donnchadh > > On 9/5/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > >> When using eclipse on war projects, the target directory will start to >> collect copies of jsp files, from war:war commands, etc. >> >> >> >> Is there a way to have eclipse ignore the files when searching and >> reporting errors? >> >> >> >> D- >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse & target directory
Does anybody know if eclipse supports different classpaths for each source directory? You can have multiple source directories with different build destinations but can each source also have a list of different dependencies? I am pretty certain there is no support in the interface but have been curious as to if it is implemented and could be used if you changed the .classpath file by hand. Anybody? Thank you, Michael Douglas Ferguson wrote: Awesome! Thanks. Where does it store this value? I can't find it in any of the config files for the project. Could this be added to eclipse:eclipse? -Original Message- From: Donnchadh Ó Donnabháin [mailto:[EMAIL PROTECTED]] Sent: Friday, September 08, 2006 8:48 AM To: Maven Users List Subject: Re: Eclipse & target directory In eclipse right-click on the target folder and select 'Properties...' Then, in the Info page, check the 'derived' check box. This should exlude it from searches and resource lookups. Probably error reporting too but I haven't verified that Donnchadh On 9/5/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: When using eclipse on war projects, the target directory will start to collect copies of jsp files, from war:war commands, etc. Is there a way to have eclipse ignore the files when searching and reporting errors? D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse & target directory
It seems to be stored in a binary file in the workspace (making it difficult for eclipse:eclipse to do much about ir) but there is an API method for setting it so maybe the m2eclipse eclipse plugin could do that Donnchadh On 9/8/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: Awesome! Thanks. Where does it store this value? I can't find it in any of the config files for the project. Could this be added to eclipse:eclipse? -Original Message- From: Donnchadh Ó Donnabháin [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 8:48 AM To: Maven Users List Subject: Re: Eclipse & target directory In eclipse right-click on the target folder and select 'Properties...' Then, in the Info page, check the 'derived' check box. This should exlude it from searches and resource lookups. Probably error reporting too but I haven't verified that Donnchadh On 9/5/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > When using eclipse on war projects, the target directory will start to > collect copies of jsp files, from war:war commands, etc. > > > > Is there a way to have eclipse ignore the files when searching and > reporting errors? > > > > D- > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Eclipse & target directory
Awesome! Thanks. Where does it store this value? I can't find it in any of the config files for the project. Could this be added to eclipse:eclipse? -Original Message- From: Donnchadh Ó Donnabháin [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 8:48 AM To: Maven Users List Subject: Re: Eclipse & target directory In eclipse right-click on the target folder and select 'Properties...' Then, in the Info page, check the 'derived' check box. This should exlude it from searches and resource lookups. Probably error reporting too but I haven't verified that Donnchadh On 9/5/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: > When using eclipse on war projects, the target directory will start to > collect copies of jsp files, from war:war commands, etc. > > > > Is there a way to have eclipse ignore the files when searching and > reporting errors? > > > > D- > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse & target directory
In eclipse right-click on the target folder and select 'Properties...' Then, in the Info page, check the 'derived' check box. This should exlude it from searches and resource lookups. Probably error reporting too but I haven't verified that Donnchadh On 9/5/06, Douglas Ferguson <[EMAIL PROTECTED]> wrote: When using eclipse on war projects, the target directory will start to collect copies of jsp files, from war:war commands, etc. Is there a way to have eclipse ignore the files when searching and reporting errors? D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Eclipse & target directory
Does anybody experience this? I'm also having trouble when I install a new version of a dependent jar, then run eclipse:eclipse, eclipse doesn't update the errors. It will still send the old api, even after I run refresh. Is there a magic sequence that would make things works smoother? D- - Original Message - From: [EMAIL PROTECTED] Sent: Tue, 9/5/2006 11:43am To: users Subject: Eclipse & target directory When using eclipse on war projects, the target directory will start to collect copies of jsp files, from war:war commands, etc. Is there a way to have eclipse ignore the files when searching and reporting errors? D- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]