Mercurial > public > develkit
annotate groovy-ant.xml @ 123:6f1918544f7f
Add test to cleanLocal to ensure local repo was removed
author | smith@nwoca.org |
---|---|
date | Wed, 06 Feb 2013 19:58:34 +0000 |
parents | 9dcb429eea14 |
children |
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"> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
22 <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
|
23 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
|
24 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
|
25 <mkdir dir="${dist.javadoc.dir}"/> |
63
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
26 <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
|
27 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
|
28 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
|
29 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
|
30 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
|
31 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
|
32 author="${javadoc.author}" |
63
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
33 doctitle="${javadoc.windowtitle}" > |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
34 <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
|
35 <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
|
36 <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
|
37 <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
|
38 </groovydoc> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
39 </target> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
40 |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
41 <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
|
42 <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
|
43 <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
|
44 <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
|
45 <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
|
46 <sequential> |
63
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
47 <property name="work.dir" value="${basedir}"/> |
27
ea29594bb799
TL-34: Switch to Jacoco for coverage analysis.
smith@nwoca.org
parents:
14
diff
changeset
|
48 <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
|
49 <property name="run.jvmargs" value=""/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
50 <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
|
51 <if> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
52 <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
|
53 <then> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
54 <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
|
55 </then> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
56 <else> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
57 <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
|
58 </else> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
59 </if> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
60 <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
|
61 <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
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 <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
|
68 <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
|
69 <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
|
70 </fileset> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
71 </batchtest> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
72 <classpath> |
63
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
73 <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
|
74 </classpath> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
75 <syspropertyset> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
76 <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
|
77 <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
|
78 </syspropertyset> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
79 <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
|
80 <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
|
81 <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
|
82 <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
|
83 <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
|
84 </junit> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
85 </sequential> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
86 </macrodef> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
87 </target> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
88 |
11
de6f3a495afd
Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents:
10
diff
changeset
|
89 <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
|
90 <property name="groovy.test.includes" value="**/*Test.*"/> |
de6f3a495afd
Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents:
10
diff
changeset
|
91 <j2seproject3:junit testincludes="${groovy.test.includes}"/> |
de6f3a495afd
Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents:
10
diff
changeset
|
92 </target> |
de6f3a495afd
Move groovy -do-test-run target into groovy script
smith@nwoca.org
parents:
10
diff
changeset
|
93 |
9
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
94 <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
|
95 <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
|
96 <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
|
97 <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
|
98 <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
|
99 <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
|
100 <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
|
101 <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
|
102 <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
|
103 <attribute name="gensrcdir" default="${empty.dir}"/> |
10 | 104 <attribute default="" name="processorpath"/> |
105 <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
|
106 <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
|
107 <sequential> |
63
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
108 <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
|
109 <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
|
110 <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
|
111 <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
|
112 <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
|
113 <src> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
114 <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
|
115 <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
|
116 </dirset> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
117 </src> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
118 <classpath> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
119 <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
|
120 </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 <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
|
122 <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
|
123 <customize/> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
124 </javac> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
125 </groovyc> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
126 </sequential> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
127 </macrodef> |
63
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
128 |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
129 <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
|
130 <attribute default="${src.dir}" name="srcdir"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
131 <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
|
132 <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
|
133 <attribute default="${javac.processorpath}" name="processorpath"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
134 <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
|
135 <attribute default="${includes}" name="includes"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
136 <attribute default="${excludes}" name="excludes"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
137 <attribute default="${javac.debug}" name="debug"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
138 <attribute default="${empty.dir}" name="gensrcdir"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
139 <element name="customize" optional="true"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
140 <sequential> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
141 <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
|
142 <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
|
143 <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
|
144 <mkdir dir="${empty.dir}"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
145 <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
|
146 <src> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
147 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
148 <include name="*"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
149 </dirset> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
150 </src> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
151 <classpath> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
152 <path path="@{classpath}"/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
153 </classpath> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
154 <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
|
155 <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
|
156 <customize/> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
157 </javac> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
158 </groovyc> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
159 |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
160 </sequential> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
161 </macrodef> |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
162 |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
163 |
5d200e63ba1a
USASR-644: update to compile groovy source for web projects
smith@nwoca.org
parents:
44
diff
changeset
|
164 |
9
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
165 </target> |
ae7d512164d0
TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff
changeset
|
166 </project> |