comparison groovy-ant.xml @ 11:de6f3a495afd

Move groovy -do-test-run target into groovy script
author smith@nwoca.org
date Thu, 23 Dec 2010 15:51:35 -0500
parents 3c87d0aee1f9
children 3cb1ff0297a8
comparison
equal deleted inserted replaced
10:3c87d0aee1f9 11:de6f3a495afd
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="groovy-project-tasks" default="all" basedir="."> 2 <project name="groovy-project-tasks" default="all" basedir="."
3 xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3">
3 4
4 <description>Ant tasks shared by Groovy based NetBeans projects.</description> 5 <description>Ant tasks shared by Groovy based NetBeans projects.</description>
5 6
6 <!-- Following targets may need to be copied to the build.xml. --> 7 <!-- Following targets need to be copied to the build.xml.
7 <target name="-javadoc-build" depends="groovydoc"/> 8 <target name="-javadoc-build" depends="groovydoc"/>
8 <target name="-init-macrodef-junit" depends="-init-macrodef-junit-groovy"/> 9 <target name="-init-macrodef-junit" depends="-init-macrodef-junit-groovy"/>
9 <target name="-pre-compile" depends="-groovy-init-macrodef-javac-groovyc"/> 10 <target name="-pre-compile" depends="-groovy-init-macrodef-javac-groovyc"/>
10 <!-- end copy --> 11 end copy -->
11 12
12 <target depends="init" name="groovydoc"> 13 <target depends="init" name="groovydoc">
13 <taskdef name="groovydoc" 14 <taskdef name="groovydoc"
14 classname="org.codehaus.groovy.ant.Groovydoc" 15 classname="org.codehaus.groovy.ant.Groovydoc"
15 classpath="${javac.classpath}"/> 16 classpath="${javac.classpath}"/>
71 </junit> 72 </junit>
72 </sequential> 73 </sequential>
73 </macrodef> 74 </macrodef>
74 </target> 75 </target>
75 76
77 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-groovy-do-test-run">
78 <property name="groovy.test.includes" value="**/*Test.*"/>
79 <j2seproject3:junit testincludes="${groovy.test.includes}"/>
80 </target>
81
76 <target name="-groovy-init-macrodef-javac-groovyc"> 82 <target name="-groovy-init-macrodef-javac-groovyc">
77 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> 83 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
78 <attribute name="srcdir" default="${src.dir}"/> 84 <attribute name="srcdir" default="${src.dir}"/>
79 <attribute name="destdir" default="${build.classes.dir}"/> 85 <attribute name="destdir" default="${build.classes.dir}"/>
80 <attribute name="classpath" default="${javac.classpath}"/> 86 <attribute name="classpath" default="${javac.classpath}"/>