annotate groovy-ant.xml @ 9:ae7d512164d0

TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
author smith@nwoca.org
date Sat, 18 Dec 2010 19:41:10 -0500
parents
children 3c87d0aee1f9
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"?>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
2 <project name="groovy-project-tasks" default="all" basedir=".">
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
3
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
4 <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
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 <!-- Following targets may need to be copied to the build.xml. -->
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
7 <target name="-javadoc-build" depends="groovydoc"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
8 <target name="-init-macrodef-junit" depends="-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
9 <target name="-pre-compile" depends="-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
10 <!-- end copy -->
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
11
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
12 <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
13 <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
14 classname="org.codehaus.groovy.ant.Groovydoc"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
15 classpath="${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
16 <mkdir dir="${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
17 <groovydoc
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
18 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
19 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
20 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
21 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
22 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
23 author="${javadoc.author}"
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
24 doctitle="${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
25 <link packages="java.,org.xml.,javax.,org.xml." href="http://java.sun.com/javase/6/docs/api/"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
26 <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
27 <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
28 <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
29 </groovydoc>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
30 </target>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
31
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
32 <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
33 <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
34 <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
35 <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
36 <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
37 <sequential>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
38 <if>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
39 <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
40 <then>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
41 <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
42 </then>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
43 <else>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
44 <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
45 </else>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
46 </if>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
47 <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
48 <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
49 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
50 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
51 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
52 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
53 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
54 <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
55 <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
56 <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
57 </fileset>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
58 </batchtest>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
59 <classpath>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
60 <path path="${run.test.classpath}"/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
61 </classpath>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
62 <syspropertyset>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
63 <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
64 <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
65 </syspropertyset>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
66 <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
67 <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
68 <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
69 <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
70 <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
71 </junit>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
72 </sequential>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
73 </macrodef>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
74 </target>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
75
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
76 <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
77 <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
78 <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
79 <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
80 <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
81 <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
82 <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
83 <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
84 <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
85 <attribute name="gensrcdir" 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
86 <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
87 <sequential>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
88 <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
89 <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
90 <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
91 <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
92 <src>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
93 <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
94 <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
95 </dirset>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
96 </src>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
97 <classpath>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
98 <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
99 </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 <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
101 <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
102 <customize/>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
103 </javac>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
104 </groovyc>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
105 </sequential>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
106 </macrodef>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
107 </target>
ae7d512164d0 TL-32: Add groovy and and allow scripts to "required" a script to be imported separately.
smith@nwoca.org
parents:
diff changeset
108 </project>