ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: specifying jvm for running ant tasks
Date Fri, 16 Mar 2007 13:28:36 GMT
<java jvm fork>

But you could also use Java1.5 for your 1.5 AND 1.4 projects.
When compiling your 1.4 you set source+target="1.4"


Jan

>-----Ursprüngliche Nachricht-----
>Von: thomaslarsson [mailto:thomas.p.larsson@gmail.com] 
>Gesendet: Freitag, 16. März 2007 14:18
>An: user@ant.apache.org
>Betreff: specifying jvm for running ant tasks
>
>
>Hello everyone,
>
>I have an ant task that calls a set of ant tasks in order to 
>build a set of
>projects in the correct order.
>
>
>Now I added a project that needs to be run with java 1.5, and 
>I would like
>to be able to configure the build so that only this new target 
>is run with
>1.5, and to old tasks with 1.4.
>
>
>Is there any way to do this? Perhaps without using the exec 
>task or writing
>a custom task? Here is an outline of my ant task.
>
>
>&lt;target name="build-all"&gt;
>
>&nbsp;&nbsp;   &lt;echo message="building first project"/&gt;
>
>
>&nbsp;&nbsp;   &lt;ant dir="some.dir" file="build.xml" 
>target="dist"/&gt;
>
>
>
>&nbsp;&nbsp;   &lt;echo message="building second project"/&gt;
>
>
>&nbsp;&nbsp;   &lt;ant dir="other.dir" file="build.xml" 
>target="dist"/&gt;
>
>&lt;/target>
>
>Best Regards 
>
>-Thomas
>-- 
>View this message in context: 
>http://www.nabble.com/specifying-jvm-for-running-ant-tasks-tf34
>14450.html#a9514299
>Sent from the Ant - Users mailing list archive at Nabble.com.
>

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


Mime
View raw message