Re: how to set JAVA_HOME in antscript build.xml
Jim Hague <[email protected]> Wed, 2 Jul 2008 10:17:57 +0100
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 01 July 2008 21:51:43 Naina Dani wrote:
> I do not know how to stub out main ant script calling the real script
> through the exec task. Could you please elaborate this further.
We're running Anthill OS under JDK 1.6, and using the JDK 1.6 compiler to
build a project targetted at the 1.4 JVM. In the relevant build.xml we have:
<property name="waldo.java.source.version" value="1.4"/>
<property name="waldo.java.target.version" value="1.4"/>
<javac destdir="${build}" classpathref="libs.path"
debug="${debug}" optimize="${optimize}" deprecation="on"
source="${waldo.java.source.version}"
target="${waldo.java.target.version}">
<src refid="src.path"/>
</javac>
(Waldo is the internal project name).
--
Jim Hague - [email protected] Never trust a computer you can't lift.