[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Re: automatic build of external jar

Christian wrote:
Hello,

I devoloped my own library. I use this library in more and more projects. In every project I create a new folder "lib" an copy manually my library into this folder.

Is there an easy (automatic) way that does someting like this during the building project:
1. oh something changed in the external library
2. build jar of this library
3. copy library into lib folder.
4. continue with the normal process.


If you have any idea, please share with me :)

I have two things:

1) Is there a reason you don't just keep the library project in your workspace and have the other projects depend directly on it (instead of using a JAR in the other projects)? With a direct dependency like that and Build Automatically enabled (it is by default), everything "just works."

2) If #1 is not an option for some reason, it is pretty easy to write a custom builder using Ant. For some help getting started, see http://bewarethepenguin.blogspot.com/2008/08/customizing-builds-for-your-eclipse.html

Hope this helps,
Eric