Add support for the groovyc ant task
------------------------------------
Key: OFBIZ-2026
URL: https://issues.apache.org/jira/browse/OFBIZ-2026
Project: OFBiz
Issue Type: New Feature
Components: ALL COMPONENTS
Affects Versions: SVN trunk
Reporter: Joe Eckard
Priority: Minor
Fix For: SVN trunk
Add support for the groovyc ant task OOTB. This would allow compiling groovy
classes that can be run using the standard JavaServiceEngine.
example build.xml section:
<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc"
classpathref="local.class.path"/>
<target name="classes" depends="prepare">
<groovyc srcdir="${src.dir}" destdir="${build.dir}/classes"
classpathref="local.class.path"/>
</target>
OR, if you need to set additional javac options:
<target name="classes" depends="prepare">
<groovyc srcdir="${src.dir}" destdir="${build.dir}/classes"
classpathref="local.class.path">
<javac debug="on" deprecation="on"/>
</groovyc>
</target>
OR
<target name="classes" depends="prepare">
<groovyc srcdir="${src.dir}" destdir="${build.dir}/classes"
classpathref="local.class.path">
<javac debug="on" deprecation="on">
<compilerarg value="-Xlint"/>
</javac>
</groovyc>
</target>
all that is required for this is the addition of the commons-cli-1.0 jar.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.