File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "ANT" Watch "ANT" New topic
Author

ANT

yegappan ramaiah
Greenhorn

Joined: Dec 29, 2003
Posts: 27
i need to set the java_home dynamically in my build.xml file, anyone can help me???
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

Since this is an ANT question, how's about we move it to the Ant forum...


My Blog | DZone Articles
B Hayes
Ranch Hand

Joined: Feb 07, 2003
Posts: 61
You mean from outside the buildfile?
You can set up environment variables before running your build.xml and read them. Ex:
<property environment="env" />
<property name="project.home" value="${env.project_home}" />
yegappan ramaiah
Greenhorn

Joined: Dec 29, 2003
Posts: 27
hi hayes,
thanx but the requirement is that i have to use jdk1.4 for compilation and after the javac, i want the java_home to point to the websphere's jdk, everything is in a single build.xml... u have any idea how to proceed, thanx for replying, anyone can help in this regard,
thanx to all
 
 
subject: ANT
 
developer file tools