ant-user mailing list archives

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

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.

  -----Original Message-----
  From: jeremie hebre []
  Sent: Thursday, 7 December 2000 3:48 AM
  Subject: Problem with Java task


   I have a target like this:

  <target name="predeploy">

           <echo message="java before"/>
           <java classname="">
               <arg value="-buildfile"/>
               <arg value="${project.tmp.dir}/build/build.xml"/>
               <arg value="usage"/>
          <echo message="java after"/>


  This task launch another Main instance wich runs tasks of another

  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


View raw message