[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Eclipse does not refresh user libraries

Harry wrote:
Hi,

I created a few user libraries in Eclipse 3.2.1 that include jar files from ant build. Every time I rebuild (clean followed by build) my jar files, my user libraries in Eclipse become invalid. There's one or two jar files that I have to remove from the user libraries, and then add it back to the libraries; or I have to manipulate the jar file order in the user libraries to re-valid the user libraries.

I tried clean the whole workspace, restart Eclipse. The problem persists.

Is there any other methods to get Eclipse refresh the user libraries with re-built jar files?

If the JARs reside in your workspace, you can configure the Ant launch to automatically refresh the project or directory that contains them. Edit the Ant Launch config (right-click in the Ant view and choose Run As > External Tools... (or select it from the toolbar button menu). There you'll see the Refresh tab where you can configure Eclipse to automatically refresh.
I'm not positive this will work with User Libraries, but I'd be surprised if it doesn't.
If the JARs do not live in your workspace, I'd recommend making a linked directory to them in your project and configure the Ant launch to refresh that.


Hope this helps,
	Eric