File: build.xml

package info (click to toggle)
elki 0.6.0-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,532 kB
  • ctags: 23,022
  • sloc: java: 152,594; xml: 49; sh: 8; makefile: 7
file content (58 lines) | stat: -rw-r--r-- 2,280 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<project name="ELKI" default="dist" basedir=".">
  <property name="src" location="src"/>
  <property name="build" location="build"/>
  <property name="dist" location="dist"/>
  <property name="elki" value="de.lmu.ifi.dbs.elki"/>
  <property name="title" value="ELKI: Environment for DeveLoping KDD-Applications Supported by Index-Structures"/>
  <property name="url" value="http://elki.dbs.ifi.lmu.de/"/>
  <property name="version" value="0.6.0"/>

  <target name="init">
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
  </target>

  <target name="compile" depends="init">
    <!-- Compile the java code from ${src} into ${build} -->
    <javac destdir="${build}" includeantruntime="false" deprecation="false" debug="false" optimize="true" source="1.7" target="1.7" debuglevel="" encoding="UTF-8">
      <compilerarg value="-Xlint:all" />
      <classpath>
        <pathelement path="${src}" />
        <pathelement path="/usr/share/java/batik.jar" />
        <pathelement path="/usr/share/java/xml-commons-external.jar" />
        <pathelement path="/usr/share/java/fop.jar" />
        <pathelement path="/usr/share/java/trove-3.jar" />
      </classpath>
      <src path="${src}" />
    </javac>
  </target>

  <target name="install" depends="init">
    <copy todir="${build}">
        <fileset dir="${src}">
            <exclude name="**/*.java" />
        </fileset>
    </copy>
  </target>

  <target name="dist" depends="compile, install">
    <!-- build precompiled jar -->
    <jar jarfile="${dist}/elki.jar" basedir="${build}">
      <manifest>
        <attribute name="Main-class" value="${elki}.gui.minigui.MiniGUI" />
        <attribute name="Built-By" value="erich@debian.org" />
        <attribute name="Implementation-Title" value="${title}" />
        <attribute name="Implementation-Version" value="${version}" />
        <attribute name="Implementation-URL" value="${url}" />
        <attribute name="Class-Path" value="batik.jar fop.jar trove-3.jar xml-commons-external.jar" />
      </manifest>
    </jar>
    <!-- build source jar -->
    <jar jarfile="${dist}/elki-src.jar" basedir="${src}" />
  </target>

  <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
  </target>
</project>