Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need a jar file to be added to path

Status
Not open for further replies.

swaroop

Programmer
Feb 4, 2001
100
US
Hi All,

When I am generating a process I'll get a jar file, I have a path in init task of build.xml file. I wanted to append the jar generated in another task to the path in init.

Please suggest a way to add the jar generated to the path.

Regards,

Swaroop.
 
I'm kind of lost on where the problem is. I would suggest something like this, from what I understand...

<property name="build.dir" value="build" />
<property name="dist.dir" value="dist" />
<property name="build.jar" value="myproject.jar" />

Reference "${build.dir}/${build.jar}" when building the JAR the first time and "${dist.dir}/${build.jar}" later. You can play with the properties a lot to get this stuff set the way you like it and propogate a hierarchy of values thru each property. I like creating layers of properties to enable easy changes, but that tends to make the property structure a bit harder to understand at first.

Hope this helps.

________________________________________
Michael Flanakin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top