You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by jtnews <jt...@bellatlantic.net> on 2000/10/01 08:57:29 UTC

is there any macro capability in ant?

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?

Re: is there any macro capability in ant?

Posted by James Duncan Davidson <du...@x180.com>.
on 9/30/00 11:57 PM, jtnews at jtnews@bellatlantic.net wrote:

> I have many targets of the form:

...

This should be asked on the ant mailing list.

.duncan