ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Wells" <swe...@graviton.com>
Subject RE: forking multiple spawns
Date Fri, 17 Aug 2001 15:38:33 GMT
Following is the relevant portion of the script - I was finally
(seemingly <g>) able to have Ant stop 2nd time processing via the
"mibs.done" flag.  JDMK is available via Sun's JavaSoft site.

- <target name="mibs" depends="init" unless="mibs.done">
- <java classname="com.sun.jdmk.tools.MibGen" fork="yes">
  <arg line="-mc -d ${src}/com/graviton/dac/networkMonitor/mib -tp
com.graviton.dac.networkMonitor.mib
${src}/com/graviton/dac/networkMonitor/mib-graviton.txt
${lib}/java/jdmk/mib_core.txt" /> 
- <classpath>
  <pathelement
path="${lib}/java/jdmk/jdmktk.jar;${lib}/java/jdmk/jdmkrt.jar" /> 
  </classpath>
  </java>
- <java classname="com.sun.jdmk.tools.MibGen" fork="yes">
  <arg line="-mc -d ${src}/com/graviton/dac/networkMonitor/mib -tp
com.graviton.dac.networkMonitor.mib
${src}/com/graviton/dac/networkMonitor/mib-sub-graviton.txt
${src}/com/graviton/dac/networkMonitor/mib-graviton.txt
${lib}/java/jdmk/mib_core.txt" /> 
- <classpath>
  <pathelement
path="${lib}/java/jdmk/jdmktk.jar;${lib}/java/jdmk/jdmkrt.jar" /> 
  </classpath>
  </java>
  <property name="mibs.done" value="true" /> 
  </target>

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Thursday, August 16, 2001 10:30 PM
To: ant-user@jakarta.apache.org
Subject: Re: forking multiple spawns


On Thu, 16 Aug 2001, Steve Wells <swells@graviton.com> wrote:

> I have an Ant task that I'm forking using "java" directive -
> however, when processing it will launch the taks twice (repeatedly).

Could you give us a snippet of your build file?

Stefan


Mime
View raw message