samples/conditionaluseofapi/build.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 20:46:27 +0100
changeset 408 9a439a79c6d0
permissions -rw-r--r--
Use scala 2.10.4 to compile on JDK8
jtulach@6
     1
<?xml version="1.0" encoding="UTF-8"?>
jtulach@6
     2
<project name="conditionaluseofapi" default="default" basedir=".">
jtulach@6
     3
    <description>Builds, tests, and runs the project conditionaluseofapi.</description>
jtulach@6
     4
    
jtulach@6
     5
    <target name="test">
jtulach@6
     6
        <!-- simulates run on JDK 1.4 -->
jtulach@6
     7
        <antcall target="clean"/>
jtulach@6
     8
        <antcall target="run">
jtulach@6
     9
            <param name="excludes" value="**/*15.java"/>
jtulach@6
    10
        </antcall>
jtulach@6
    11
    </target>
jtulach@6
    12
jtulach@6
    13
    <target name="-pre-compile">
jtulach@6
    14
        <condition property="excludes" value="**/*15.java">
jtulach@6
    15
            <not>
jtulach@6
    16
            <available classname="java.lang.StringBuilder"/>
jtulach@6
    17
            </not>
jtulach@6
    18
        </condition>
jtulach@6
    19
        <property name="excludes" value=""/>
jtulach@6
    20
    </target>
jtulach@6
    21
jtulach@6
    22
    
jtulach@6
    23
    <import file="nbproject/build-impl.xml"/>
jtulach@6
    24
    
jtulach@6
    25
    
jtulach@6
    26
    
jtulach@6
    27
</project>