[
https://issues.apache.org/jira/browse/OFBIZ-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Eckard closed OFBIZ-2026.
-----------------------------
Resolution: Invalid
Oops, it was already there. So the groovyc class path & taskdef would look like:
{xml}
<path id="groovyc.class.path">
<fileset dir="${ofbiz.home.dir}/framework/base/lib/scripting/"
includes="*.jar"/>
<pathelement location="${ofbiz.
home.dir}/framework/base/lib/commons/commons-cli-1.0.jar"/>
</path>
<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc"
classpathref="groovyc.class.path"/>
{xml}
> 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:
> {code:xml}
> <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>
> {code}
> OR, if you need to set additional javac options:
> {code:xml}
> <target name="classes" depends="prepare">
> <groovyc srcdir="${src.dir}" destdir="${build.dir}/classes"
> classpathref="local.class.path">
> <javac debug="on" deprecation="on"/>
> </groovyc>
> </target>
> {code}
> OR
> {code:xml}
> <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>
> {code}
> 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.