[2] | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
---|
| 2 | <project basedir="." default="dist" name="Crosspare">
|
---|
| 3 | <!-- General Properties -->
|
---|
| 4 | <property environment="env" />
|
---|
| 5 | <property name="build.location" value="bin" />
|
---|
| 6 | <property name="dist.location" value="dist" />
|
---|
| 7 | <property name="javadoc.location" value="javadoc" />
|
---|
| 8 | <property name="downloads.location" value="downloads" />
|
---|
| 9 | <property name="debuglevel" value="source,lines,vars" />
|
---|
[54] | 10 | <property name="target" value="1.8" />
|
---|
| 11 | <property name="source" value="1.8" />
|
---|
[2] | 12 |
|
---|
| 13 | <!-- Crosspare Properties -->
|
---|
| 14 | <property name="Crosspare.jarname" value="crosspare.jar" />
|
---|
| 15 | <path id="Crosspare.classpath">
|
---|
| 16 | <pathelement location="${build.location.eventbenchconsole}" />
|
---|
| 17 | <pathelement location="lib/commons-collections4-4.0-alpha1.jar" />
|
---|
| 18 | <pathelement location="lib/commons-io-2.4.jar" />
|
---|
[44] | 19 | <pathelement location="lib/commons-math3-3.5.jar" />
|
---|
[2] | 20 | <pathelement location="lib/java-utils-0.0.1.jar" />
|
---|
| 21 | <pathelement location="lib/weka.jar" />
|
---|
[54] | 22 | <pathelement location="lib/guava-19.0" />
|
---|
| 23 | <pathelement location="lib/ojalgo-37.1.jar" />
|
---|
[62] | 24 | <pathelement location="lib/elki-bundle-0.7.1.jar" />
|
---|
[2] | 25 | </path>
|
---|
| 26 |
|
---|
| 27 | <!-- Initialization Targets -->
|
---|
| 28 | <target name="init.build">
|
---|
| 29 | <mkdir dir="${build.location}" />
|
---|
| 30 | </target>
|
---|
| 31 | <target name="init.dist">
|
---|
| 32 | <mkdir dir="${dist.location}" />
|
---|
| 33 | </target>
|
---|
| 34 | <target name="init.downloads">
|
---|
| 35 | <mkdir dir="${downloads.location}" />
|
---|
| 36 | </target>
|
---|
| 37 | <target name="init.javadoc">
|
---|
| 38 | <mkdir dir="${javadoc.location}" />
|
---|
| 39 | </target>
|
---|
| 40 |
|
---|
| 41 | <!-- Clean-up Targets -->
|
---|
| 42 | <target name="clean.build">
|
---|
| 43 | <delete dir="${build.location}" />
|
---|
| 44 | </target>
|
---|
| 45 | <target name="clean.dist">
|
---|
| 46 | <delete dir="${dist.location}" />
|
---|
| 47 | </target>
|
---|
| 48 | <target name="clean.javadoc">
|
---|
| 49 | <delete dir="${javadoc.location}" />
|
---|
| 50 | </target>
|
---|
| 51 | <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" />
|
---|
| 52 |
|
---|
| 53 | <!-- Build Targets -->
|
---|
| 54 | <target depends="init.build" name="build">
|
---|
| 55 | <javac debug="true" debuglevel="${debuglevel}"
|
---|
| 56 | destdir="${build.location}" source="${source}"
|
---|
| 57 | target="${target}" includeantruntime="false">
|
---|
| 58 | <src path="src" />
|
---|
| 59 | <classpath refid="Crosspare.classpath" />
|
---|
| 60 | </javac>
|
---|
| 61 | </target>
|
---|
| 62 |
|
---|
| 63 | <!-- Distribution Targets -->
|
---|
| 64 | <target depends="build,init.dist,javadoc" name="dist">
|
---|
| 65 | <!-- dist of main components, i.e., the console -->
|
---|
| 66 | <pathconvert property="dist.libs" pathsep=" ">
|
---|
| 67 | <mapper>
|
---|
| 68 | <chainedmapper>
|
---|
| 69 | <flattenmapper />
|
---|
| 70 | <globmapper from="*" to="lib/*" />
|
---|
| 71 | </chainedmapper>
|
---|
| 72 | </mapper>
|
---|
| 73 | <path>
|
---|
| 74 | <fileset dir="lib">
|
---|
| 75 | <include name="**/*.jar" />
|
---|
| 76 | </fileset>
|
---|
| 77 | </path>
|
---|
| 78 | </pathconvert>
|
---|
| 79 | <property name="dist.classpath" value="${dist.libs}"></property>
|
---|
| 80 | <jar destfile="${dist.location}/${Crosspare.jarname}" basedir="${build.location}">
|
---|
| 81 | <manifest>
|
---|
| 82 | <attribute name="Built-By" value="${user.name}" />
|
---|
| 83 | <attribute name="Main-Class" value="de.ugoe.cs.cpdp.Runner" />
|
---|
| 84 | <attribute name="Class-Path" value="${dist.classpath}" />
|
---|
| 85 | </manifest>
|
---|
| 86 | </jar>
|
---|
| 87 | <copy includeemptydirs="false" todir="${dist.location}/lib">
|
---|
| 88 | <fileset dir="lib" />
|
---|
| 89 | </copy>
|
---|
| 90 |
|
---|
| 91 | <!-- copy Javadoc to dist -->
|
---|
| 92 | <copy includeemptydirs="false" todir="${dist.location}/javadoc">
|
---|
| 93 | <fileset dir="${javadoc.location}" />
|
---|
| 94 | </copy>
|
---|
| 95 | </target>
|
---|
| 96 |
|
---|
| 97 |
|
---|
| 98 | <target depends="init.downloads,dist" name="createDownloads">
|
---|
| 99 | <zip destfile="${downloads.location}/crosspare.zip">
|
---|
| 100 | <fileset dir="${dist.location}" />
|
---|
| 101 | </zip>
|
---|
| 102 | </target>
|
---|
| 103 |
|
---|
| 104 | <!-- Javadoc Targets -->
|
---|
| 105 | <target depends="init.javadoc" name="javadoc"
|
---|
| 106 | description="o Create Javadocs (Requires Javadoc 1.4+)">
|
---|
| 107 | <javadoc destdir="${javadoc.location}"
|
---|
| 108 | additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
|
---|
| 109 | <classpath refid="Crosspare.classpath" />
|
---|
| 110 | <link href="http://download.oracle.com/javase/7/docs/api/" />
|
---|
| 111 | <fileset dir="src" includes="**/*.java" />
|
---|
| 112 | </javadoc>
|
---|
| 113 | </target>
|
---|
| 114 | </project>
|
---|