[Anthill] Point to ant 1.6 instead of 1.5
Erik Husby
mhusby at broad.mit.edu
Wed Nov 17 10:58:29 CST 2004
Roehl, Dan wrote:
> Hi,
>
> I am using anthill OS 1.7.1.212. I would like to point to ant 1.6.2
> instead of the default ant 1.5.1. Has anyone been able to do this
> successfully? It seems like anthill does not like ant 1.6. Any
> suggestions?
>
>
>
> DJR
>
>
>
It is my understanding that Anthill OS 1.7 directly calls the Ant
program, i.e. does not invoke it through a batch script file. There were
structural changes in Ant 1.6 that broke this calling sequence. Hence,
we need an updated version of Anthill that supports Ant 1.6.
But you can perform the same work around that I use to invoke Maven.
Provide a Ant 1.5 build that simply executes Ant 1.6 using the Ant
<exec> task. Here is what I do to invoke Maven.
============= mavenant.xml =============
<project name="mavenant" default="maven" basedir=".">
<description>
An Ant build script to build using Maven.
This indirection is needed until Anthill supports direct execution of Maven.
</description>
<property environment="env"/>
<property file="${user.home}/ant_maven.properties"/>
<property name="maven.goal" value="jar"/>
<property name="maven.dir" location="${basedir}"/>
<property name="MAVEN_ENDORSED" location="${maven.home}/lib/endorsed"/>
<property name="maven.forehead.jar"
location="${maven.home}/lib/forehead-1.0-beta-5.jar"/>
<property name="maven.max.memory" value="256m"/>
<target name="maven"
description="Run Maven in the current directory">
<fail unless="maven.home" message="You must define maven.home as
the Maven home directory."/>
<echo message="Using MAVEN_HOME=${maven.home}"/>
<echo message="Using JAVA_HOME=${env.JAVA_HOME}"/>
<echo message="Goal: ${maven.goal}"/>
<java classname="com.werken.forehead.Forehead" fork="yes"
maxmemory="${maven.max.memory}">
<arg value="-d" />
<arg value="${maven.dir}" />
<arg value="${maven.goal}" />
<classpath>
<pathelement location="${maven.forehead.jar}" />
</classpath>
<sysproperty key="javax.xml.parsers.SAXParserFactory"
value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
<sysproperty key="javax.xml.parsers.DocumentBuilderFactory"
value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
<sysproperty key="java.endorsed.dirs" value="${MAVEN_ENDORSED}"/>
<sysproperty key="maven.home" value="${maven.home}" />
<sysproperty key="tools.jar"
value="${env.JAVA_HOME}/lib/tools.jar" />
<sysproperty key="forehead.conf.file"
value="${maven.home}/bin/forehead.conf" />
</java>
</target>
</project>
========= end of mavenant.xml ============
--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard
Rm. 2192 320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, mhusby at broad.mit.edu
More information about the Anthill
mailing list