How do I configure my project buildpath to have a set of .jar files located in the same directory automatically included in the buildpath ? Meaning that adding a new .jar fi
Have you tried using a wildcard in the classpath? So you would use something like:
javac MyApp.java -cp /some/path/to/libraries/*.jar
I've not used java for a while so not sure if the above is possible, but it's what I would expect to be the syntax.
Use Maven2, and use the Eclipse Maven2 plugin.
I'm using workaround which I developed after reading similar question. I'm posting it here, because that question has a little bit different scope and it might not be obvious how to use suggestions written there.
It's irritating to do this for every lib directory in your project but it's better than adding jars manually every time you do svn update (from your luckier colleagues using Idea). It's a shame that Eclipse don't have this feature.
Meaning that adding a new .jar file to this directory (and refreshing the project) updates the buildpath
Sorry, Eclipse doesn't support this.
Using a homemade "ClassPath Container" solves the problem but needs you to build an Eclipse-plugin : http://www.ibm.com/developerworks/edu/os-dw-os-eclipse-classpath.html
AFAIK, there's no normal way to do this.
If you really want, there's a little hack. Eclipse .classpath file is a very simple XML. You can write a script or ant task that goes over a directory, updates .classpath xml and refreshes the project.