From: Tim O'B. <to...@di...> - 2002-01-25 23:05:39
|
Mitch, Here you go, I refactored the build.xml a little bit form the original. You'll notice these changes: 1. Project name and project version are defined as properties. 2. Directories are defined in properties to be reused, this will make it easier to change the structure of the project if you decide to later. 3. The "run" target now depends on the "jar" target. Essential becuase the classpath includes a reference to the project JAR. 4. The compile, javadoc, and run targets all share a reference to a single "classpath" element, defined directly after the global properties. This means that anyone can check the project out of the repository and run it regardless of the environment's CLASSPATH. I attached the patch file. Tim O'Brien to...@di... -----Original Message----- From: jpr...@li... [mailto:jpr...@li...]On Behalf Of Christian Garbs [ Master Mitch ] Sent: Friday, January 25, 2002 3:49 PM To: jpr...@li... Subject: [Jprojecttimer-developers] RE: JDOM On Wed, Jan 23, 2002 at 04:54:12PM -0600, Tim O'Brien wrote: > Putting a JAR into a "lib" directory in a project that depends on > another library is a common practice. Check out the newsml-toolkit > project or any of the Jakarta project for examples. I've created a lib/ directory to include jdom.jar. > BTW, I made an Ant build.xml file for the jprojecttimer project. > Right now it relies on jdom.jar being in the classpath that runs > Ant, but if you included the JAR file then the Ant script could > incorporate it into the classpath when compiling and running the > jprojecttimer application. I tried to expand the build.xml so that lib/jdom.jar is included. The "compile" and "run" targets work fine. But I've got a problem: jdom.jar is included in jprojecttimer.jar, but when I cut down my CLASSPATH and run jprojecttimer.jar, the org.jdom.* classes are not found. The edited version of build.xml can be found in the CVS repository. so long, Mitch -- ....Christian.Garbs.....................................http://www.cgarbs.de Von Zeit zu Zeit muß man sündigen, damit man den Spaß an der Tugend nicht verliert. _______________________________________________ Jprojecttimer-developers mailing list Jpr...@li... https://lists.sourceforge.net/lists/listinfo/jprojecttimer-developers |