java/alt2xml-cli/nbproject/groovy-build.xml
author František Kučera <franta-hg@frantovo.cz>
Thu, 04 Sep 2014 16:28:49 +0200
changeset 67 96ce967c0182
parent 16 b2fbb3570ae1
permissions -rw-r--r--
cli: support --input-url and multiple names per option (might be used for short variants like -i, -a etc.)
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
     4 ***         EDIT ../build.xml INSTEAD         ***
     5 
     6         
     7         -->
     8 <project xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc">
     9     <target name="-groovy-init-macrodef-javac">
    10         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
    11             <attribute name="srcdir" default="${src.dir}"/>
    12             <attribute name="destdir" default="${build.classes.dir}"/>
    13             <attribute name="classpath" default="${javac.classpath}"/>
    14             <attribute name="includes" default="${includes}"/>
    15             <attribute name="excludes" default="${excludes}"/>
    16             <attribute name="debug" default="${javac.debug}"/>
    17             <attribute name="sourcepath" default="${empty.dir}"/>
    18             <attribute name="gensrcdir" default="${empty.dir}"/>
    19             <attribute name="processorpath" default="${javac.processorpath}"/>
    20             <attribute name="apgeneratedsrcdir" default="${build.generated.sources.dir}/ap-source-output"/>
    21             <element name="customize" optional="true"/>
    22             <sequential>
    23                 <taskdef name="groovyc" classpath="${javac.classpath}" classname="org.codehaus.groovy.ant.Groovyc"/>
    24                 <property name="empty.dir" location="${build.dir}/empty"/>
    25                 <mkdir dir="${empty.dir}"/>
    26                 <groovyc srcdir="@{srcdir}" sourcepath="@{sourcepath}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeAntRuntime="false" fork="true">
    27                     <src>
    28                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">
    29                             <include name="*"/>
    30                         </dirset>
    31                     </src>
    32                     <classpath>
    33                         <path path="@{classpath}"/>
    34                     </classpath>
    35                     <javac debug="@{debug}" deprecation="${javac.deprecation}" encoding="${source.encoding}" source="${javac.source}" target="${javac.target}">
    36                         <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
    37                         <customize/>
    38                     </javac>
    39                 </groovyc>
    40             </sequential>
    41         </macrodef>
    42         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
    43             <attribute name="srcdir" default="${src.dir}"/>
    44             <attribute name="destdir" default="${build.classes.dir}"/>
    45             <attribute name="classpath" default="${javac.classpath}"/>
    46             <sequential>
    47                 <depend srcdir="@{srcdir}" destdir="@{destdir}" cache="${build.dir}/depcache" includes="${includes}" excludes="${excludes}">
    48                     <classpath>
    49                         <path path="@{classpath}"/>
    50                     </classpath>
    51                 </depend>
    52             </sequential>
    53         </macrodef>
    54         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
    55             <attribute name="destdir" default="${build.classes.dir}"/>
    56             <sequential>
    57                 <fail unless="javac.includes">Must set javac.includes</fail>
    58                 <pathconvert property="javac.includes.binary" pathsep=",">
    59                     <path>
    60                         <filelist dir="@{destdir}" files="${javac.includes}"/>
    61                     </path>
    62                     <globmapper from="*.java" to="*.class"/>
    63                 </pathconvert>
    64                 <delete>
    65                     <files includes="${javac.includes.binary}"/>
    66                 </delete>
    67             </sequential>
    68         </macrodef>
    69     </target>
    70     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run-with-groovy">
    71         <j2seproject3:test testincludes=""/>
    72     </target>
    73     <target depends="init,compile-test,-pre-test-run,-do-test-run-with-groovy" if="have.tests" name="-post-test-run-with-groovy">
    74         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
    75     </target>
    76     <target depends="init,compile-test,-pre-test-run,-do-test-run-with-groovy,test-report,-post-test-run-with-groovy,-test-browse" description="Run unit tests." name="test-with-groovy"/>
    77     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-groovy">
    78         <fail unless="test.binarytestincludes">Must select some files in the IDE or set test.includes</fail>
    79         <j2seproject3:test testincludes=""/>
    80     </target>
    81     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-groovy" if="have.tests" name="-post-test-run-single-groovy">
    82         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
    83     </target>
    84     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-groovy,-post-test-run-single-groovy" description="Run single unit test." name="test-single-groovy"/>
    85     <target depends="init,compile-test-single,-pre-test-run-single,-debug-start-debugger-test" name="-do-test-debug-single-groovy">
    86         <fail unless="test.binarytestincludes">Must select some files in the IDE or set test.binarytestincludes</fail>
    87         <j2seproject3:test-debug testincludes=""/>
    88     </target>
    89     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-debug-single-groovy" if="have.tests" name="-post-test-debug-single-groovy">
    90         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
    91     </target>
    92     <target depends="init,compile-test-single,-pre-test-run-single,-debug-start-debugger-test,-do-test-debug-single-groovy,-post-test-debug-single-groovy" name="debug-test-with-groovy"/>
    93 </project>