source: trunk/CrossPare/build.xml @ 109

Last change on this file since 109 was 107, checked in by atrautsch, 8 years ago

build libs

  • Property svn:mime-type set to text/plain
File size: 5.0 KB
RevLine 
[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" />
19                <pathelement location="lib/java-utils-0.0.1.jar" />
20                <pathelement location="lib/weka.jar" />
[87]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" />
[88]24                <pathelement location="lib/org.eclipse.ocl.common_1.1.0.v20130531-0544.jar" />
[89]25                <pathelement location="lib/org.eclipse.ocl.ecore_3.3.0.v20130520-1222.jar" />
[87]26                <pathelement location="lib/commons-math3-3.5.jar" />
[54]27                <pathelement location="lib/ojalgo-37.1.jar" />
[62]28                <pathelement location="lib/elki-bundle-0.7.1.jar" />
[87]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" />
[77]32                <pathelement location="lib/jmetal-algorithm-5.0-jar-with-dependencies.jar" />
[87]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" />
[107]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" />
[93]41                <pathelement location="lib/commons-lang3-3.4.jar" />
[95]42                <pathelement location="lib/dbcp2-2.1.1.jar" />
[107]43                <pathelement location="lib/jgap.jar" />
[2]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="true" debuglevel="${debuglevel}"
75                        destdir="${build.location}" source="${source}"
76                        target="${target}" includeantruntime="false">
77                        <src path="src" />
78                        <classpath refid="Crosspare.classpath" />
79                </javac>
80        </target>
81       
82        <!-- Distribution Targets -->
83        <target depends="build,init.dist,javadoc" name="dist">
84                <!-- dist of main components, i.e., the console -->
85                <pathconvert property="dist.libs" pathsep=" ">
86                        <mapper>
87                                <chainedmapper>
88                                        <flattenmapper />
89                                        <globmapper from="*" to="lib/*" />
90                                </chainedmapper>
91                        </mapper>
92                        <path>
93                                <fileset dir="lib">
94                                        <include name="**/*.jar" />
95                                </fileset>
96                        </path>
97                </pathconvert>
98                <property name="dist.classpath" value="${dist.libs}"></property>
99                <jar destfile="${dist.location}/${Crosspare.jarname}" basedir="${build.location}">
100                        <manifest>
101                                <attribute name="Built-By" value="${user.name}" />
102                                <attribute name="Main-Class" value="de.ugoe.cs.cpdp.Runner" />
103                                <attribute name="Class-Path" value="${dist.classpath}" />
104                        </manifest>
105                </jar>
106                <copy includeemptydirs="false" todir="${dist.location}/lib">
107                        <fileset dir="lib" />
108                </copy>
109               
110                <!-- copy Javadoc to dist -->
111                <copy includeemptydirs="false" todir="${dist.location}/javadoc">
112                        <fileset dir="${javadoc.location}" />
113                </copy>
114        </target>
115
116
117        <target depends="init.downloads,dist" name="createDownloads">
118                <zip destfile="${downloads.location}/crosspare.zip">
119                        <fileset dir="${dist.location}" />
120                </zip>
121        </target>
122
123        <!-- Javadoc Targets -->
124        <target depends="init.javadoc" name="javadoc"
125                description="o Create Javadocs (Requires Javadoc 1.4+)">
126                <javadoc destdir="${javadoc.location}"
127                        additionalparam="-J-Dorg.apache.commons.attributes.javadoc.CATaglet.sources=${basedir}">
128                        <classpath refid="Crosspare.classpath" />
129                        <link href="http://download.oracle.com/javase/7/docs/api/" />
130                        <fileset dir="src" includes="**/*.java" />
131                </javadoc>
132        </target>
133</project>
Note: See TracBrowser for help on using the repository browser.