-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·98 lines (90 loc) · 4.32 KB
/
Copy pathbuild.xml
File metadata and controls
executable file
·98 lines (90 loc) · 4.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<project name="PerformanceBench" default="all" basedir=".">
<description>Performance Bench build script. Default target builds doc and jar file; optional zip or tar targets create full archive.</description>
<!-- set global properties for this build -->
<property name="rev" value="1.2"/>
<property name="author" value="mailto:[email protected]"/>
<property name="src" value="src"/>
<property name="build" value="bin"/>
<property name="libdir" value="lib"/>
<property name="docdir" value="doc"/>
<property name="sampledir" value="samples"/>
<property name="module" value="PerformanceBench"/>
<property name="compileclasspath" value="/usr/local/lib/mysql-connector-java.jar;${CLASSPATH};" />
<property name="jarname" value="bench.jar"/>
<target name="compile" description="Compile all Java source" >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" classpath="${compileclasspath}" destdir="${build}" includes="*.java" debug="on" listfiles="yes" includeantruntime="false"/>
<javac srcdir="${src}" classpath="${compileclasspath}" destdir="${build}" includes="build/*.java" debug="on" listfiles="yes" includeantruntime="false"/>
<javac srcdir="${src}" classpath="${compileclasspath}" destdir="${build}" includes="build/gen/*.java" debug="on" listfiles="yes" includeantruntime="false"/>
</target>
<target name="doc" description="generate Javadoc">
<javadoc sourcepath="${src}"
destdir="${docdir}"
classpath="${compileclasspath}"
overview="${src}/Bench_Overview.html"
package="false"
author="true"
version="true"
use="false"
breakiterator="yes"
verbose="no">
<doctitle><![CDATA[<h1 align="left" width="75">Performance Bench tools.</h1>]]></doctitle>
<fileset dir="${src}" defaultexcludes="yes">
<include name="*.java"/>
</fileset>
<packageset dir="${src}" defaultexcludes="yes">
<include name="build/**" />
</packageset>
</javadoc>
</target>
<target name="jar" depends="compile" description="Create jar file for the full package, including any extensions">
<mkdir dir="${libdir}"/>
<echo message="Building Test Harness rev ${rev}" />
<jar jarfile="${libdir}/${jarname}">
<fileset dir="${build}">
<include name="**/*.class" />
</fileset>
<manifest>
<attribute name="Built-By" value="${author}"/>
<attribute name="Implementation-Title" value="Performance Bench"/>
<attribute name="Implementation-Version" value="${rev}"/>
<attribute name="Implementation-Author" value="David Hentchel. All rights reserved."/>
</manifest>
</jar>
</target>
<!-- Currently the default target builds jar and doc; if desired, replace 'depends' with 'zip' and/or 'tar' to also build archive -->
<target name="all" depends="tidy,tar" description="Create jar file and documentation">
<echo message="Build complete." />
</target>
<target name="tar" depends="jar,doc" description="Create tar file">
<tar destfile="../${module}${rev}.tar">
<tarfileset dir=".." mode="755">
<include name="${basedir}/${libdir}/${jarname}" />
<include name="${basedir}/${sampledir}/**" />
<include name="${basedir}/${docdir}/**" />
<include name="${basedir}/${src}/**" />
<include name="${basedir}/README.txt" />
<include name="${basedir}/license_info.txt" />
<include name="${basedir}/build.xml" />
<include name="${basedir}/setenv*.*" />
</tarfileset>
</tar>
</target>
<target name="tidy" description="Remove Editor and build temp files">
<echo message="Deleting editor and build backup files" />
<fixcrlf srcdir="." includes="**/*.sh" eol="unix" eof="remove" />
<delete quiet="true">
<fileset dir="." includes="**/*~" defaultexcludes="no" />
<fileset dir="." includes="**/#*#" defaultexcludes="no" />
<fileset dir="." includes="**/fixcrlf-*" />
<fileset dir="./samples/out" includes="**" />
</delete>
</target>
<target name="clean" depends="tidy"
description="Remove class files and jars">
<delete verbose='true' failonerror="false" >
<fileset dir="${libdir}" includes="**/${jarname}" />
<fileset dir="${build}" includes="**/*.class" />
</delete>
</target>
</project>