ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Stempfhuber" ...@bonn.iz-soz.de>
Subject Re: Fwd: Re: Ant bug-report #126: addition
Date Mon, 18 Sep 2000 19:28:17 GMT
Stefan,

I have a bunch of build.xml files like the one below. To get it working
with 1.1.8 I had to change
vmargs="-classpath ${lib}/idl.jar"
to
vmargs="-classpath %classpath%;${lib}/idl.jar"
Is there a more simple way?


<project name="demo" default="all" basedir="../..">

  <!-- ==================================================== -->
  <!--             Demo build file                         -->
  <!-- ==================================================== -->

   <target name="init">
        <property name="name" value="hello"/>
        <property name="dirs.base" value="${basedir}"/>
        <property name="classdir" value="${dirs.base}/classes"/>
        <property name="lib" value="${dirs.base}/lib"/>
        <property name="include" value="${dirs.base}/idl"/>
        <property name="idlflags" value="-I${include}/omg -p demo -d
${dirs.base}/demo/${name}/generated"/>
   </target>

   <target name="all" depends="init,idl">
        <javac srcdir="${dirs.base}/demo/${name}/"
               destdir="${classdir}"
              
includes="generated/demo/${name}/**.java,generated/demo/${name}/**Packag
e/**.java,**.java"
                />
   </target>

   <target name="idl" >
      <java classname="jacorb.idl.parser"
              args="${idlflags} ${dirs.base}/demo/${name}/server.idl"
              jvmargs="-classpath ${lib}/idl.jar"
              fork="yes"
        />
   </target>


   <target name="clean">
           <deltree dir="${classdir}/demo/${name}"/>
           <deltree dir="${dirs.base}/demo/${name}/generated"/>
   </target>

Regards


Maximilian Stempfhuber
German Social Science Information Centre
___________________________________________________________________
Maximilian Stempfhuber
Informationszentrum  Sozialwissenschaften (IZ)
Abteilungsleiter Forschung und Entwicklung
Lennestr. 30, 53113 Bonn, GERMANY
Tel.: (++49) (0)228 - 2281 139     Fax:  (++49) (0)228 - 2281 120
___________________________________________________________________
The box said "Requires Windows 95 or better." So I bought OS/2 Warp



Mime
View raw message