source: trunk/CrossPare/build.xml @ 95

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