Add a Jar Dependency
Version 4.1 by Lachlan Deck on 2007/09/10 19:03
You'll often need to work with 3rd party Jars, as well as your own reusable code.
Adding these to your project is very simple.
- By default WOLips will create a Libraries folder in your project directory. Populate this with any jars you like.
- In Eclipse, right-click (or ctrl-click) on the jar and choose Build Path > Add to Build Path. This simple adjusts your project classpath but doesn't affect your final build.
- Adjust your build.xml file to ensure that the jar is also embedded in Contents/Resources/Java directory of the final build as below.
Either add an include entry for each jar...
Unknown macro: noformat. Click on this message for details.
... or have a single <include name="/.jar"/> to include all jars in the specified directory.