[ 
https://issues.apache.org/jira/browse/OFBIZ-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Eckard updated OFBIZ-2026:
------------------------------

    Description: 
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.

  was:
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.


added xml formatting

> 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.

Reply via email to