[Anthill] how to set JAVA_HOME in antscript build.xml

Jim Hague jim.hague at acm.org
Wed Jul 2 04:17:57 CDT 2008


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 - jim.hague at acm.org          Never trust a computer you can't lift.



More information about the Anthill mailing list