java/build.xml
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 06 Feb 2013 23:28:15 +0100
branchdevelopment
changeset 2033 5a1b1db42140
parent 1818 2e5ed72e7dfd
child 2034 0942643dab4b
permissions -rw-r--r--
Eclipse projects fixed (build paths, exports, etc)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
     2
<!-- WARNING: Eclipse auto-generated file.
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
     3
              Any modifications will be overwritten.
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
     4
              To include a user specific buildfile here, simply create one in the same
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
     5
              directory with the processing instruction <?eclipse.ant.import?>
2033
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
     6
              as the first entry and export the buildfile again. --><project basedir="." default="build" name="stx:libjava">
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
     7
    <property environment="env"/>
2033
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
     8
    <property name="stx:libjava | benchmarks.location" value="../benchmarks/java"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
     9
    <property name="stx:libjava | examples.location" value="../examples/java"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    10
    <property name="stx:libjava | examples | tomcat 6.x.location" value="../examples/tomcat6/apache-tomcat-6.0.35-src"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    11
    <property name="stx:libjava | experiments.location" value="../experiments/java"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    12
    <property name="stx:libjava | tests.location" value="../tests/libjava"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    13
    <property name="ECLIPSE_HOME" value="../../../../../../../../../../../../opt/eclipse-4.2"/>
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    14
    <property name="debuglevel" value="source,lines,vars"/>
2033
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    15
    <property name="target" value="1.7"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    16
    <property name="source" value="1.7"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    17
    <path id="stx:libjava.classpath">
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    18
        <pathelement location="bin"/>
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    19
        <pathelement location="libs/groovy-all-1.8.2.jar"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    20
        <pathelement location="libs/junit4-4.8.2.jar"/>
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    21
    </path>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    22
    <target name="init">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    23
        <mkdir dir="bin"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    24
        <copy includeemptydirs="false" todir="bin">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    25
            <fileset dir="src">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    26
                <exclude name="**/*.java"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    27
            </fileset>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    28
        </copy>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    29
    </target>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    30
    <target name="clean">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    31
        <delete dir="bin"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    32
    </target>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    33
    <target depends="clean" name="cleanall"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    34
    <target depends="build-subprojects,build-project" name="build"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    35
    <target name="build-subprojects"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    36
    <target depends="init" name="build-project">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    37
        <echo message="${ant.project.name}: ${ant.file}"/>
2033
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    38
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" includeantruntime="false" source="${source}" target="${target}">
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    39
            <src path="src"/>
2033
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    40
            <classpath refid="stx:libjava.classpath"/>
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    41
        </javac>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    42
    </target>
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    43
    <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects">
2033
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    44
        <ant antfile="build.xml" dir="${stx:libjava | benchmarks.location}" inheritAll="false" target="clean"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    45
        <ant antfile="build.xml" dir="${stx:libjava | benchmarks.location}" inheritAll="false" target="build">
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    46
            <propertyset>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    47
                <propertyref name="build.compiler"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    48
            </propertyset>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    49
        </ant>
2033
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    50
        <ant antfile="build.xml" dir="${stx:libjava | examples.location}" inheritAll="false" target="clean"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    51
        <ant antfile="build.xml" dir="${stx:libjava | examples.location}" inheritAll="false" target="build">
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    52
            <propertyset>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    53
                <propertyref name="build.compiler"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    54
            </propertyset>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    55
        </ant>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    56
        <ant antfile="build.xml" dir="${stx:libjava | examples | tomcat 6.x.location}" inheritAll="false" target="clean"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    57
        <ant antfile="build.xml" dir="${stx:libjava | examples | tomcat 6.x.location}" inheritAll="false" target="build">
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    58
            <propertyset>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    59
                <propertyref name="build.compiler"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    60
            </propertyset>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    61
        </ant>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    62
        <ant antfile="build.xml" dir="${stx:libjava | experiments.location}" inheritAll="false" target="clean"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    63
        <ant antfile="build.xml" dir="${stx:libjava | experiments.location}" inheritAll="false" target="build">
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    64
            <propertyset>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    65
                <propertyref name="build.compiler"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    66
            </propertyset>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    67
        </ant>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    68
        <ant antfile="build.xml" dir="${stx:libjava | tests.location}" inheritAll="false" target="clean"/>
5a1b1db42140 Eclipse projects fixed (build paths, exports, etc)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 1818
diff changeset
    69
        <ant antfile="build.xml" dir="${stx:libjava | tests.location}" inheritAll="false" target="build">
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    70
            <propertyset>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    71
                <propertyref name="build.compiler"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    72
            </propertyset>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    73
        </ant>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    74
    </target>
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    75
    <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    76
        <copy todir="${ant.library.dir}">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    77
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    78
        </copy>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    79
        <unzip dest="${ant.library.dir}">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    80
            <patternset includes="jdtCompilerAdapter.jar"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    81
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    82
        </unzip>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    83
    </target>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    84
    <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    85
        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    86
        <antcall target="build"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    87
    </target>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    88
</project>