Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-436

groovy should have an antlib descriptor for groovyc and possibly wiki2html

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta-8
    • 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

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            peter.reilly@corvil.com Peter Reilly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: