source: trunk/CrossPare/build.xml @ 87

Last change on this file since 87 was 87, checked in by sherbold, 9 years ago
  • removed old version of Apache commons-math3
  • updated classpath and Ant build
  • Property svn:mime-type set to text/plain
File size: 4.6 KB
Line 
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" />
10        <property name="target" value="1.8" />
11        <property name="source" value="1.8" />
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" />
19                <pathelement location="lib/java-utils-0.0.1.jar" />
20                <pathelement location="lib/weka.jar" />
21                <pathelement location="lib/RBFNetwork.jar" />
22                <pathelement location="lib/epsilon-1.2-kitchensink.jar" />
23                <pathelement location="lib/org.antlr.runtime_3.1.b1_3.1.0.jar" />
24                <pathelement location="lib/org.eclipse.ocl.common_1.1.0.v20130531.jar" />
25                <pathelement location="lib/org.eclipse.ocl.ecore_3.3.0.v20130520.jar" />
26                <pathelement location="lib/commons-math3-3.5.jar" />
27                <pathelement location="lib/ojalgo-37.1.jar" />
28                <pathelement location="lib/elki-bundle-0.7.1.jar" />
29                <pathelement location="lib/alternatingDecisionTrees.jar" />
30                <pathelement location="lib/guava-19.0.jar" />
31                <pathelement location="lib/mysql-connector-java-5.1.38-bin.jar" />
32                <pathelement location="lib/jmetal-algorithm-5.0-jar-with-dependencies.jar" />
33                <pathelement location="lib/jmetal-core-5.0-jar-with-dependencies.jar" />
34                <pathelement location="lib/jmetal-exec-5.0-jar-with-dependencies.jar" />
35                <pathelement location="lib/probabilisticSignificanceAE-1.0.2.jar" />
36        </path>
37
38        <!-- Initialization Targets -->
39        <target name="init.build">
40                <mkdir dir="${build.location}" />
41        </target>
42        <target name="init.dist">
43                <mkdir dir="${dist.location}" />
44        </target>
45        <target name="init.downloads">
46                <mkdir dir="${downloads.location}" />
47        </target>
48        <target name="init.javadoc">
49                <mkdir dir="${javadoc.location}" />
50        </target>
51
52        <!-- Clean-up Targets -->
53        <target name="clean.build">
54                <delete dir="${build.location}" />
55        </target>
56        <target name="clean.dist">
57                <delete dir="${dist.location}" />
58        </target>
59        <target name="clean.javadoc">
60                <delete dir="${javadoc.location}" />
61        </target>
62        <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" />
63
64        <!-- Build Targets -->
65        <target depends="init.build" name="build">
66                <javac debug="true" debuglevel="${debuglevel}"
67                        destdir="${build.location}" source="${source}"
68                        target="${target}" includeantruntime="false">
69                        <src path="src" />
70                        <classpath refid="Crosspare.classpath" />
71                </javac>
72        </target>
73       
74        <!-- Distribution Targets -->
75        <target depends="build,init.dist,javadoc" name="dist">
76                <!-- dist of main components, i.e., the console -->
77                <pathconvert property="dist.libs" pathsep=" ">
78                        <mapper>
79                                <chainedmapper>
80                                        <flattenmapper />
81                                        <globmapper from="*" to="lib/*" />
82                                </chainedmapper>
83                        </mapper>
84                        <path>
85                                <fileset dir="lib">
86                                        <include name="**/*.jar" />
87                                </fileset>
88                        </path>
89                </pathconvert>
90                <property name="dist.classpath" value="${dist.libs}"></property>
91                <jar destfile="${dist.location}/${Crosspare.jarname}" basedir="${build.location}">
92                        <manifest>
93                                <attribute name="Built-By" value="${user.name}" />
94                                <attribute name="Main-Class" value="de.ugoe.cs.cpdp.Runner" />
95                                <attribute name="Class-Path" value="${dist.classpath}" />
96                        </manifest>
97                </jar>
98                <copy includeemptydirs="false" todir="${dist.location}/lib">
99                        <fileset dir="lib" />
100                </copy>
101               
102                <!-- copy Javadoc to dist -->
103                <copy includeemptydirs="false" todir="${dist.location}/javadoc">
104                        <fileset dir="${javadoc.location}" />
105                </copy>
106        </target>
107
108
109        <target depends="init.downloads,dist" name="createDownloads">
110                <zip destfile="${downloads.location}/crosspare.zip">
111                        <fileset dir="${dist.location}" />
112                </zip>
113        </target>
114
115        <!-- Javadoc Targets -->
116        <target depends="init.javadoc" name="javadoc"
117                description="o Create Javadocs (Requires Javadoc 1.4+)">
118                <javadoc destdir="${javadoc.location}"
119                        additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
120                        <classpath refid="Crosspare.classpath" />
121                        <link href="http://download.oracle.com/javase/7/docs/api/" />
122                        <fileset dir="src" includes="**/*.java" />
123                </javadoc>
124        </target>
125</project>
Note: See TracBrowser for help on using the repository browser.