ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurd...@yahoo.com>
Subject RE: Problem with Java task
Date Wed, 06 Dec 2000 21:48:18 GMT
Hi,

If the Java application that you run using the <java> task calls
System.exit(), you should add fork="true" to the <java> task.  Otherwise,
ant runs the application in the same VM as it is running in, and when the
app calls exit(), it takes ant with it.


Adam
  -----Original Message-----
  From: jeremie hebre [mailto:jeremie.hebre@corp.vizzavi.net]
  Sent: Thursday, 7 December 2000 3:48 AM
  To: ant-user@jakarta.apache.org
  Subject: Problem with Java task


  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?
  Thanks for your help

  Jérémie

Mime
View raw message