source: trunk/CrossPare/build.xml @ 86

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