понедельник, 8 августа 2011 г.

Eclipse Directory Container

I was busy with converting of an Ant project into Eclipse (JBoss WS) to be able to debug the corresponding code inside of JBoss.
Being tired of adding found libraries (jars) one by one into Eclipse classpath, some time was looking for solution on how to add all jars in the particular directory into Eclipse project's build path.
Currently I have found and tested the following solution which I find very useful that allows to solve the problem above:

Eclipse plugin: Simple Directory Container
https://github.com/benjchristensen/SimpleDirectoryContainer_EclipsePlugin

Unfortunately it is no update site for it. Just download the Eclipse source project, import it into Eclipse using "Existing Projects into Workspace" and export the built jar using "Deployable plug-ins and fragments". Then put the resulting DirectoryClasspathContainer_1.0.0.jar into Eclipse' plugins directory and restart it.
Instructions how to add Directory Container as a library you may find here: http://benjchristensen.com/2011/05/26/dynamic-directory-of-jar-files-in-classpath-via-eclipse-plugin/