source: trunk/CrossPare/build.xml @ 75

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