~ubuntu-branches/ubuntu/lucid/mvel/lucid

2 by Thierry Carrez
Initial release. New Eucalyptus dependency.
1
<?xml version="1.0"?>
2
3
<project name="pkg-java" default="package" basedir="..">
4
5
    <property name="build.sourceDirectory" value="src/main/java"/>
6
    <property name="build.resourcesDirectory" value="src/main/resources"/>
7
    <property name="build.directory" value="build"/>
8
    <property name="build.outputDirectory" value="${build.directory}/classes"/>
9
10
    <target name="init">
11
        <available property="available.resources" file="${build.resourcesDirectory}"/>
12
    </target>
13
14
    <target name="clean">
15
        <delete dir="${build.directory}"/>
16
    </target>
17
18
    <target name="process-resources" depends="init" if="available.resources">
19
        <mkdir dir="${build.outputDirectory}"/>
20
        <copy todir="${build.outputDirectory}">
21
            <fileset dir="${build.resourcesDirectory}"/>
22
        </copy>
23
    </target>
24
25
    <target name="compile" depends="process-resources">
26
        <mkdir dir="${build.outputDirectory}"/>
27
        <javac
28
            destdir="${build.outputDirectory}"
3 by Thierry Carrez
debian/build.xml: Explicitely build java5-compatible code
29
            source="1.5"
30
            target="1.5"
2 by Thierry Carrez
Initial release. New Eucalyptus dependency.
31
            nowarn="true"
32
            debug="on">
33
            <src path="${build.sourceDirectory}"/>
34
        </javac>
35
    </target>
36
37
    <target name="package" depends="compile">
38
        <jar jarfile="${build.directory}/${artifactId}-${artifactVersion}.jar"
39
            basedir="${build.outputDirectory}"/>
40
    </target>
41
42
</project>