Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
groovy should have an antlib descriptor for
groovyc and possibly wiki2html
Description
ant 1.6 allows use of an xml file resource to specify tasks and
types. This resource may be associated with an XML NS uri based
on the location of the "antlib.xml" resource.
This allows build file's to look like this:
<project xmlns:g="antlib:org.codehaus.groovy">
<target name="c">
<mkdir dir="classes"/>
<g:groovyc srcdir="src/scripts" destdir="classes"/>
</target>
</project>
i.e the build file does not need to call "taskdef" and
the tasks/types get placed in an namespace.
All that needs to be done in groovy is to place the
file antlib.xml containing:
<antlib>
<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc"/>
</antlib>
in $groovy_cvs_workspace/groovy-core/src/main/org/codehaus/groovy
Without modification the maven build script places the
antlib.xml in the groovy.jar file