java/build.xml
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 28 Jan 2013 21:15:59 +0000
branchdevelopment
changeset 2005 f5f046bfdfc6
parent 1818 2e5ed72e7dfd
child 2033 5a1b1db42140
permissions -rw-r--r--
More work on new JavaCodeBundleEditor & preferences. Not yet finished.
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?>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
     6
              as the first entry and export the buildfile again. -->
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
     7
<project basedir="." default="build" name="jv2 - stx:libjava">
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
     8
    <property environment="env"/>
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
     9
    <property name="!!ext!! - stx:libjava - tests.location" value="../../../../../../../../../../Projects/libjava/sources/libjava/branches/jk_new_structure/tests/libjava"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    10
    <property name="jv2 - stx:libjava|examples.location" value="../examples/java"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    11
    <property name="ECLIPSE_HOME" value="../../../../../../../../../../../../usr/lib/eclipse"/>
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    12
    <property name="debuglevel" value="source,lines,vars"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    13
    <property name="target" value="1.6"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    14
    <property name="source" value="1.6"/>
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    15
    <path id="jv2 - stx:libjava.classpath">
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    16
        <pathelement location="bin"/>
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    17
        <pathelement location="libs/groovy-all-1.8.2.jar"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    18
        <pathelement location="libs/junit4-4.8.2.jar"/>
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    19
    </path>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    20
    <target name="init">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    21
        <mkdir dir="bin"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    22
        <copy includeemptydirs="false" todir="bin">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    23
            <fileset dir="src">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    24
                <exclude name="**/*.java"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    25
            </fileset>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    26
        </copy>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    27
    </target>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    28
    <target name="clean">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    29
        <delete dir="bin"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    30
    </target>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    31
    <target depends="clean" name="cleanall"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    32
    <target depends="build-subprojects,build-project" name="build"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    33
    <target name="build-subprojects"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    34
    <target depends="init" name="build-project">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    35
        <echo message="${ant.project.name}: ${ant.file}"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    36
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    37
            <src path="src"/>
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    38
            <classpath refid="jv2 - stx:libjava.classpath"/>
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    39
        </javac>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    40
    </target>
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    41
    <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects">
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    42
        <ant antfile="build.xml" dir="${!!ext!! - stx:libjava - tests.location}" inheritAll="false" target="clean"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    43
        <ant antfile="build.xml" dir="${!!ext!! - stx:libjava - tests.location}" inheritAll="false" target="build">
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    44
            <propertyset>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    45
                <propertyref name="build.compiler"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    46
            </propertyset>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    47
        </ant>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    48
        <ant antfile="build.xml" dir="${jv2 - stx:libjava|examples.location}" inheritAll="false" target="clean"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    49
        <ant antfile="build.xml" dir="${jv2 - stx:libjava|examples.location}" inheritAll="false" target="build">
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    50
            <propertyset>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    51
                <propertyref name="build.compiler"/>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    52
            </propertyset>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    53
        </ant>
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    54
    </target>
1457
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    55
    <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    56
        <copy todir="${ant.library.dir}">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    57
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    58
        </copy>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    59
        <unzip dest="${ant.library.dir}">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    60
            <patternset includes="jdtCompilerAdapter.jar"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    61
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    62
        </unzip>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    63
    </target>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    64
    <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    65
        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    66
        <antcall target="build"/>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    67
    </target>
fba314a596e8 Added build.xml
vranyj1
parents:
diff changeset
    68
</project>
1691
826f8d7dc0df thinlocks reintegrated
vranyj1
parents: 1458
diff changeset
    69