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. |
[ 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. |
In reply to this post by Nicolas Malin (Jira)
[ 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644513#action_12644513 ] eckardjf edited comment on OFBIZ-2026 at 11/1/08 8:57 AM: ------------------------------------------------------------ Oops, it was already there. So the groovyc class path & taskdef would look like: {code: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"/> {code} was (Author: eckardjf): 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. |
Free forum by Nabble | Edit this page |