Re: how to set JAVA_HOME in antscript build.xml
Kenneth Burgener <[email protected]> Wed, 02 Jul 2008 11:19:11 -0600
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Message-ID | <[email protected]> |
On 7/2/2008 11:00 AM, Naina Dani wrote:
> Thanks for the help.
> The solution you have suggested seems good, but, I have two different
> environments: Solaris and Windows. So, if I hardcode in the build.xml (
> executable="${jdk1.4}/bin/javac">), windows will have a problem
> compiling the code as it will not find the javac in the hardcoded
> location. Does anybody has a workaround for this ?
Will you have two different projects in Anthill, one for Windows and one
for Solaris? If so you could just use a property for the whole
executable parameter:
executable="${JAVAC}"
and then pass in an overriding parameter from Anthill to have the JAVAC
point to the appropriate executable.
Kenneth