source: trunk/CrossPare/build.xml @ 117

Last change on this file since 117 was 114, checked in by sherbold, 8 years ago
  • updated ant build
  • Property svn:mime-type set to text/plain
File size: 5.0 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-0544.jar" />
25                <pathelement location="lib/org.eclipse.ocl.ecore_3.3.0.v20130520-1222.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                <pathelement location="lib/log4j-1.2-api-2.5.jar" />
37                <pathelement location="lib/log4j-api-2.5.jar" />
38                <pathelement location="lib/log4j-core-2.5.jar" />
39                <pathelement location="lib/log4j-iostreams-2.5.jar" />
40                <pathelement location="lib/commons-lang-2.6.jar" />
41                <pathelement location="lib/commons-lang3-3.4.jar" />
42                <pathelement location="lib/dbcp2-2.1.1.jar" />
43                <pathelement location="lib/jgap.jar" />
44        </path>
45
46        <!-- Initialization Targets -->
47        <target name="init.build">
48                <mkdir dir="${build.location}" />
49        </target>
50        <target name="init.dist">
51                <mkdir dir="${dist.location}" />
52        </target>
53        <target name="init.downloads">
54                <mkdir dir="${downloads.location}" />
55        </target>
56        <target name="init.javadoc">
57                <mkdir dir="${javadoc.location}" />
58        </target>
59
60        <!-- Clean-up Targets -->
61        <target name="clean.build">
62                <delete dir="${build.location}" />
63        </target>
64        <target name="clean.dist">
65                <delete dir="${dist.location}" />
66        </target>
67        <target name="clean.javadoc">
68                <delete dir="${javadoc.location}" />
69        </target>
70        <target depends="clean.build,clean.dist,clean.javadoc" name="clean.all" />
71
72        <!-- Build Targets -->
73        <target depends="init.build" name="build">
74                <javac debug="false" destdir="${build.location}" source="${source}" target="${target}" includeantruntime="false" encoding="UTF-8">
75                        <src path="src" />
76                        <classpath refid="Crosspare.classpath" />
77                </javac>
78        </target>
79       
80        <!-- Distribution Targets -->
81        <target depends="build,init.dist,javadoc" name="dist">
82                <!-- dist of main components, i.e., the console -->
83                <pathconvert property="dist.libs" pathsep=" ">
84                        <mapper>
85                                <chainedmapper>
86                                        <flattenmapper />
87                                        <globmapper from="*" to="lib/*" />
88                                </chainedmapper>
89                        </mapper>
90                        <path>
91                                <fileset dir="lib">
92                                        <include name="**/*.jar" />
93                                </fileset>
94                        </path>
95                </pathconvert>
96                <property name="dist.classpath" value="${dist.libs}"></property>
97                <jar destfile="${dist.location}/${Crosspare.jarname}" basedir="${build.location}">
98                        <manifest>
99                                <attribute name="Built-By" value="${user.name}" />
100                                <attribute name="Main-Class" value="de.ugoe.cs.cpdp.Runner" />
101                                <attribute name="Class-Path" value="${dist.classpath}" />
102                        </manifest>
103                </jar>
104                <copy includeemptydirs="false" todir="${dist.location}/lib">
105                        <fileset dir="lib" />
106                </copy>
107               
108                <!-- copy Javadoc to dist -->
109                <copy includeemptydirs="false" todir="${dist.location}/javadoc">
110                        <fileset dir="${javadoc.location}" />
111                </copy>
112        </target>
113
114
115        <target depends="init.downloads,dist" name="createDownloads">
116                <zip destfile="${downloads.location}/crosspare.zip">
117                        <fileset dir="${dist.location}" />
118                </zip>
119        </target>
120
121        <!-- Javadoc Targets -->
122        <target depends="init.javadoc" name="javadoc"
123                description="o Create Javadocs (Requires Javadoc 1.4+)">
124                <javadoc destdir="${javadoc.location}"
125                        additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
126                        <classpath refid="Crosspare.classpath" />
127                        <link href="http://download.oracle.com/javase/7/docs/api/" />
128                        <fileset dir="src" includes="**/*.java" />
129                </javadoc>
130        </target>
131</project>
Note: See TracBrowser for help on using the repository browser.