File: build.xml

package info (click to toggle)
clean-crypto 1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 488 kB
  • ctags: 527
  • sloc: java: 3,838; xml: 33; makefile: 13; sh: 10
file content (42 lines) | stat: -rw-r--r-- 1,394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0"?>

<project name="pkg-java" default="package" basedir="..">

    <property name="build.sourceDirectory" value="src/main/java"/>
    <property name="build.resourcesDirectory" value="src/main/resources"/>
    <property name="build.directory" value="build"/>
    <property name="build.outputDirectory" value="${build.directory}/classes"/>

    <target name="init">
        <available property="available.resources" file="${build.resourcesDirectory}"/>
    </target>

    <target name="clean">
        <delete dir="${build.directory}"/>
    </target>

    <target name="process-resources" depends="init" if="available.resources">
        <mkdir dir="${build.outputDirectory}"/>
        <copy todir="${build.outputDirectory}">
            <fileset dir="${build.resourcesDirectory}"/>
        </copy>
    </target>

    <target name="compile" depends="process-resources">
        <mkdir dir="${build.outputDirectory}"/>
        <javac
            destdir="${build.outputDirectory}"
            nowarn="true"
            source="${sourceVersion}" target="${targetVersion}"
            debug="on">
            <src path="${build.sourceDirectory}"/>
        </javac>
    </target>

    <target name="package" depends="compile">
        <jar jarfile="${build.directory}/${artifactId}-${artifactVersion}.jar"
            basedir="${build.outputDirectory}"/>
    </target>

</project>