ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@bost.de>
Subject Re: Fwd: Re: Ant bug-report #126: addition
Date Tue, 19 Sep 2000 07:37:01 GMT
>>>>> "MS" == Max Stempfhuber <st@bonn.iz-soz.de> writes:

 MS> To get it working with 1.1.8 I had to change vmargs="-classpath
 MS> ${lib}/idl.jar" to vmargs="-classpath %classpath%;${lib}/idl.jar"

 MS> Is there a more simple way?

Yes, don't use vmargs for this at all, make that (for Ant 1.1)

<java classname="jacorb.idl.parser" 
      args="${idlflags} ${dirs.base}/demo/${name}/server.idl" 
      fork="yes">
  <classpath>
    <pathelement path="${java.class.path}" />
    <pathelement location="${lib}/idl.jar" />
  </classpath>
</java>

or to make Ant 1.2 happy

<java classname="jacorb.idl.parser" 
      fork="yes">

  <arg line="${idlflags}" />
  <arg file="${dirs.base}/demo/${name}/server.idl" />

  <classpath>
    <pathelement path="${java.class.path}" />
    <pathelement location="${lib}/idl.jar" />
  </classpath>
</java>

And even use fork="no" unless jacorb.idl.parser calls System.exit when
it's done.

Stefan

Mime
View raw message