ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Problem with Java task
Date Thu, 07 Dec 2000 07:38:01 GMT
jeremie hebre <jeremie.hebre@corp.vizzavi.net> wrote:

> Hi, 
> 
>  I have a target like this:
> 
> <target name="predeploy">
> 
>          <echo message="java before"/>
>          <java classname="org.apache.tools.ant.Main">
>              <arg value="-buildfile"/>
>              <arg value="${project.tmp.dir}/build/build.xml"/>
>              <arg value="usage"/>
>         </java>
>         <echo message="java after"/>
> 
> </target>
> 
> 
> This task launch another Main instance wich runs tasks of another
> build.xml.
> 
> It displays : 'java before' It runs very well the 'usage' target of
> the other build.xml But, it never displays 'java after', and does'nt
> run target that must be execute after.
> 
> Any ideas?

Yep, org.apache.tools.ant.Main calls System.exit when it's
done. Either use fork="yes" or the built in <ant> task.

Stefan

Mime
View raw message