source: trunk/CrossPare/build.xml @ 93

Last change on this file since 93 was 93, checked in by atrautsch, 9 years ago

init gptraining

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