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