annotate groovy-ant.xml @ 66:a85308f02ef4

update clean targets to handle user ivy in different location
author smith@nwoca.org
date Fri, 14 Oct 2011 08:35:40 -0400
parents 5d200e63ba1a
children 9dcb429eea14
rev   line source
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
11
de6f3a495afd Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents: 10
diff changeset
2 <project name="groovy-project-tasks" default="all" basedir="."
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
3 xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3"
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
4 xmlns:ssdtant="antlib:org.ssdt_ohio.tools.ant">
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
5
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
6 <description>Ant tasks shared by Groovy based NetBeans projects.</description>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
7
11
de6f3a495afd Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents: 10
diff changeset
8 <!-- Following targets need to be copied to the build.xml.
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 11
diff changeset
9 <target name="-javadoc-build" depends="groovydoc"/>
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
10 <target name="-init-macrodef-junit" depends="-init-macrodef-junit-groovy"/>
14
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 11
diff changeset
11 <target name="-pre-compile" depends="-groovy-init-macrodef-javac-groovyc"/>
3cb1ff0297a8 TL-32: Add task for creating test properties.
smith@nwoca.org
parents: 11
diff changeset
12 <target name="-do-test-run" depends="init,compile-test,-pre-test-run,-groovy-do-test-run" if="have.tests" />
11
de6f3a495afd Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents: 10
diff changeset
13 end copy -->
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
14
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
15 <!-- <ssdtant:replace-target target="javadoc-build" with="groovydoc"/>-->
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
16 <ssdtant:replace-target target="-javadoc-build" with="groovydoc"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
17 <ssdtant:replace-target target="-init-macrodef-junit" with="-init-macrodef-junit-groovy"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
18 <ssdtant:replace-target target="-do-test-run" with="-groovy-do-test-run"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
19 <ssdtant:replace-target target="-init-macrodef-javac" with="-groovy-init-macrodef-javac-groovyc"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
20
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
21 <target depends="init" name="groovydoc">
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
22 <echoproperties prefix="ivy"/>
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
23 <taskdef name="groovydoc"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
24 classname="org.codehaus.groovy.ant.Groovydoc"
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
25 classpath="${run.classpath}"/>
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
26 <mkdir dir="${dist.javadoc.dir}"/>
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
27 <groovydoc
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
28 destdir="${dist.javadoc.dir}"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
29 sourcepath="${src.dir}"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
30 windowtitle="${javadoc.windowtitle}"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
31 use="${javadoc.use}"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
32 private="${javadoc.private}"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
33 author="${javadoc.author}"
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
34 doctitle="${javadoc.windowtitle}" >
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
35 <link packages="java.,org.xml.,javax.,org.xml." href="http://download.oracle.com/javase/6/docs/api/"/>
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
36 <link packages="org.apache.ant.,org.apache.tools.ant." href="http://www.dpml.net/api/ant/1.7.0"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
37 <link packages="org.junit.,junit.framework." href="http://junit.sourceforge.net/junit3.8.1/javadoc/"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
38 <link packages="groovy.,org.codehaus.groovy." href="http://groovy.codehaus.org/api/"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
39 </groovydoc>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
40 </target>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
41
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
42 <target name="-init-macrodef-junit-groovy">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
43 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
44 <attribute default="${includes}" name="includes"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
45 <attribute default="${excludes}" name="excludes"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
46 <attribute default="**" name="testincludes"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
47 <sequential>
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
48 <property name="work.dir" value="${basedir}"/>
27
ea29594bb799 TL-34: Switch to Jacoco for coverage analysis.
smith@nwoca.org
parents: 14
diff changeset
49 <property name="jacoco.coverage.agent" value=""/>
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
50 <property name="run.jvmargs" value=""/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
51 <property name="j2ee.platform.classpath" value=""/>
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
52 <if>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
53 <isset property="java.agent.jar"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
54 <then>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
55 <property name="jvm.agent" value="-javaagent:${java.agent.jar}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
56 </then>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
57 <else>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
58 <property name="jvm.agent" value=""/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
59 </else>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
60 </if>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
61 <propertyregex input="@{includes}" property="testg.includes" regexp="\.groovy" replace=".class" defaultValue="@{includes}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
62 <junit dir="${work.dir}"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
63 errorproperty="tests.failed"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
64 failureproperty="tests.failed"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
65 fork="true"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
66 forkmode="once"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
67 showoutput="true">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
68 <batchtest todir="${build.test.results.dir}">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
69 <fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes}" includes="${testg.includes}">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
70 <filename name="@{testincludes}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
71 </fileset>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
72 </batchtest>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
73 <classpath>
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
74 <path path="${run.test.classpath}:${j2ee.platform.classpath}"/>
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
75 </classpath>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
76 <syspropertyset>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
77 <propertyref prefix="test-sys-prop."/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
78 <mapper from="test-sys-prop.*" to="*" type="glob"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
79 </syspropertyset>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
80 <formatter type="brief" usefile="false"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
81 <formatter type="xml"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
82 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
83 <jvmarg line="${run.jvmargs}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
84 <jvmarg line="${jvm.agent}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
85 </junit>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
86 </sequential>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
87 </macrodef>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
88 </target>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
89
11
de6f3a495afd Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents: 10
diff changeset
90 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-groovy-do-test-run">
de6f3a495afd Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents: 10
diff changeset
91 <property name="groovy.test.includes" value="**/*Test.*"/>
de6f3a495afd Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents: 10
diff changeset
92 <j2seproject3:junit testincludes="${groovy.test.includes}"/>
de6f3a495afd Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents: 10
diff changeset
93 </target>
de6f3a495afd Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents: 10
diff changeset
94
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
95 <target name="-groovy-init-macrodef-javac-groovyc">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
96 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
97 <attribute name="srcdir" default="${src.dir}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
98 <attribute name="destdir" default="${build.classes.dir}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
99 <attribute name="classpath" default="${javac.classpath}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
100 <attribute name="includes" default="${includes}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
101 <attribute name="excludes" default="${excludes}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
102 <attribute name="debug" default="${javac.debug}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
103 <attribute name="sourcepath" default="${empty.dir}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
104 <attribute name="gensrcdir" default="${empty.dir}"/>
10
3c87d0aee1f9 TL-32: Modify for compatiblity with NB 6.9.1
smith@nwoca.org
parents: 9
diff changeset
105 <attribute default="" name="processorpath"/>
3c87d0aee1f9 TL-32: Modify for compatiblity with NB 6.9.1
smith@nwoca.org
parents: 9
diff changeset
106 <attribute default="" name="apgeneratedsrcdir"/>
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
107 <element name="customize" optional="true"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
108 <sequential>
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
109 <echo message="using groovyc joint compiler (jse)"/>
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
110 <taskdef name="groovyc" classpath="${javac.classpath}" classname="org.codehaus.groovy.ant.Groovyc"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
111 <property name="empty.dir" location="${build.dir}/empty"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
112 <mkdir dir="${empty.dir}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
113 <groovyc fork="true" srcdir="@{srcdir}" sourcepath="@{sourcepath}" destdir="@{destdir}" encoding="${source.encoding}" includes="@{includes}" excludes="@{excludes}" includeAntRuntime="false">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
114 <src>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
115 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
116 <include name="*"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
117 </dirset>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
118 </src>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
119 <classpath>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
120 <path path="@{classpath}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
121 </classpath>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
122 <javac debug="@{debug}" deprecation="${javac.deprecation}" encoding="${source.encoding}" source="${javac.source}" target="${javac.target}">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
123 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
124 <customize/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
125 </javac>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
126 </groovyc>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
127 </sequential>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
128 </macrodef>
63
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
129
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
130 <macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
131 <attribute default="${src.dir}" name="srcdir"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
132 <attribute default="${build.classes.dir}" name="destdir"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
133 <attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
134 <attribute default="${javac.processorpath}" name="processorpath"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
135 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
136 <attribute default="${includes}" name="includes"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
137 <attribute default="${excludes}" name="excludes"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
138 <attribute default="${javac.debug}" name="debug"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
139 <attribute default="${empty.dir}" name="gensrcdir"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
140 <element name="customize" optional="true"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
141 <sequential>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
142 <echo message="using groovyc joint compiler (web)"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
143 <taskdef name="groovyc" classpath="${javac.classpath}" classname="org.codehaus.groovy.ant.Groovyc"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
144 <property location="${build.dir}/empty" name="empty.dir"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
145 <mkdir dir="${empty.dir}"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
146 <groovyc fork="true" srcdir="@{srcdir}" sourcepath="@{sourcepath}" destdir="@{destdir}" encoding="${source.encoding}" includes="@{includes}" excludes="@{excludes}" includeAntRuntime="false">
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
147 <src>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
148 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
149 <include name="*"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
150 </dirset>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
151 </src>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
152 <classpath>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
153 <path path="@{classpath}"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
154 </classpath>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
155 <javac debug="@{debug}" deprecation="${javac.deprecation}" encoding="${source.encoding}" source="${javac.source}" target="${javac.target}">
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
156 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
157 <customize/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
158 </javac>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
159 </groovyc>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
160
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
161 <!-- <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}">
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
162 <src>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
163 <dirset dir="@{gensrcdir}" erroronmissingdir="false">
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
164 <include name="*"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
165 </dirset>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
166 </src>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
167 <classpath>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
168 <path path="@{classpath}"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
169 </classpath>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
170 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
171 <compilerarg line="${javac.compilerargs}"/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
172 <customize/>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
173 </javac>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
174 -->
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
175 </sequential>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
176 </macrodef>
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
177
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
178
5d200e63ba1a USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents: 44
diff changeset
179
9
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
180 </target>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
181 </project>