ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Duncan Davidson <>
Subject Re: [RFE] Richer Task Specification
Date Thu, 22 Jun 2000 17:43:01 GMT
on 2000/06/21 16:38, at wrote:

> Note: I am no longer in favor of this approach.  I prefer Stefan's:
> <project default="codegen" basedir=".">
> <target name="codegen" depends="">
> <javac srcdir="lib" destdir="lib" />
> <taskdef name="xslt" classname="Xslt" />
> <xslt infile="${Courier.xml}"
> xsltfile="${fontfile.xsl}"
> outfile="${build.src}/fonts/"
> smart="yes" />
> </target>
> </project>

I think I like this more than I like the static inclusion of tasks. Mainly
as this is ordered and the inclusion of tasks to taskdefs isn't really.

I assume that this taskdef is local to the task since it's a child of task?

It might be useful to add a classpath attribute to taskdef to specify a
relative path to the place to pick the class up from. (create a classloader
and use it)

I am still a bit concerned that taskdefs are allowable at both the project
level and the task level, but don't have a better idea at the moment, so I'm
ok with this.


View raw message