ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mail.laconiadatasystems.com" <webmas...@laconiadatasystems.com>
Subject Re: Two <exec> tasks cause neither to run
Date Sat, 14 Aug 2004 12:47:59 GMT
Ant and Antcall allow you to refine scoping of  properties
If you want ultimate thread control I would suggest forking a java task with
fork="true"
martin
----- Original Message -----
From: "Perkins, Kristian" <Kristian.Perkins@ato.gov.au>
To: "Ant Users List" <user@ant.apache.org>
Sent: Thursday, August 12, 2004 11:34 PM
Subject: RE: Two <exec> tasks cause neither to run


Why don't you use the <ant> task instead of <exec>ing ant?

e.g.

<!-- Run on Everywhere -->
<ant dir="${software.repository}/samples-&product-version;/appfuse"
target="install"/>

Kristian


-----Original Message-----
From: Matt Raible [mailto:mattr@sourcebeat.com]
Sent: Friday, 13 August 2004 10:52 AM
To: user@ant.apache.org
Subject: Two <exec> tasks cause neither to run


I have the following two <exec> tasks in my build file.  I'm hoping that

one executes for Linux, while the other does it for Windows.  I've found

that if both are present, the whole target fails, but if I comment one
out, then it'll run.  Any ideas what's causing this?  I'm also open to
improved ways of doing the tasks below.

     <!-- Run on Linux -->
     <exec vmlauncher="false"
dir="${software.repository}/samples-&product-version;/appfuse"
       executable="ant" os="Linux">
       <env key="PATH"
path="${env.PATH};${software.repository}/&ant-dir;/bin"/>
       <env key="ANT_HOME" value="${software.repository}/&ant-dir;"/>
       <env key="JAVA_HOME" value="${env.JAVA_HOME}"/>
       <!-- CLASSPATH hack in case user has bad classpath vars -->
       <env key="classpath" value="${env.JAVA_HOME}/lib/tools.jar"/>
       <env key="ClassPath" value="${env.JAVA_HOME}/lib/tools.jar"/>
       <env key="Classpath" value="${env.JAVA_HOME}/lib/tools.jar"/>
       <env key="CLASSPATH" value="${env.JAVA_HOME}/lib/tools.jar"/>
       <arg line="install"/>
     </exec>
     <chmod dir="${software.repository}" perm="ugo+rwx"
includes="samples-&product-version;/**/**"/>

     <!-- Run on Windows -->
     <exec vmlauncher="false"
dir="${software.repository}/samples-&product-version;/appfuse"
executable="ant.bat" os="Windows 2000,Windows XP,Windows 2003">
       <env key="Path"
path="${env.Path};${software.repository}/&ant-dir;/bin"/>
       <env key="ANT_HOME" value="${software.repository}/&ant-dir;"/>
       <env key="JAVA_HOME" value="${env.JAVA_HOME}"/>
       <!-- CLASSPATH hack in case user has bad classpath vars -->
       <env key="classpath" value="${env.JAVA_HOME}/lib/tools.jar"/>
       <env key="ClassPath" value="${env.JAVA_HOME}/lib/tools.jar"/>
       <env key="Classpath" value="${env.JAVA_HOME}/lib/tools.jar"/>
       <env key="CLASSPATH" value="${env.JAVA_HOME}/lib/tools.jar"/>
       <arg line="install"/>
     </exec>

Thanks,

Matt


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



****************************************************************
                            IMPORTANT

 The information transmitted is for the use of the intended recipient only
and may contain confidential and/or legally privileged material. Any review,
re-transmission, disclosure dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities other than
the intended recipient is prohibited and may result in severe penalties.  If
you have received this e-mail in error please notify the Privacy Hotline of
the Australian Taxation Office, telephone 13 28 69 and delete all copies of
this transmission together with any attachments.
****************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message