xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jtnews <jtn...@bellatlantic.net>
Subject is there any macro capability in ant?
Date Sun, 01 Oct 2000 06:57:29 GMT
I have many targets of the form:

  <target name="test-MyClass" depends="jars">
    <java fork="yes"
          classname="org.myorg.tools.MyClass"
          taskname="test-MyClass"
          classpath="${testclasspath}">
		<arg line="myarg"/>
    </java>
  </target>

How can I reduce this to something like

   <target name="test-MyClass" depends="jars">
     <myjava 
        classname="MyClass"
        <arg line="myarg"/>
     </myjava>
   </target>

or something even shorter without going
through the overhead of defining my own task?

Mime
View raw message