forked from domgiles/SimpleDBPerformanceTest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
151 lines (122 loc) · 6.38 KB
/
build.xml
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?xml version="1.0" encoding="UTF-8"?>
<project name="simpledbtest" default="all">
<property file="build.properties"/>
<path id="library.apache_commons.classpath">
<pathelement location="${basedir}/lib/commons-cli-1.4.jar"/>
</path>
<path id="library.oracle_jdbc.classpath">
<pathelement location="${basedir}/lib/ojdbc8-19.3.0.0.jar"/>
<pathelement location="${basedir}/lib/ons-19.3.0.0.jar"/>
<pathelement location="${basedir}/lib/oraclepki-19.3.0.0.jar"/>
<pathelement location="${basedir}/lib/osdt_cert-19.3.0.0.jar"/>
<pathelement location="${basedir}/lib/osdt_core-19.3.0.0.jar"/>
<pathelement location="${basedir}/lib/simplefan-19.3.0.0.jar"/>
<pathelement location="${basedir}/lib/ucp-19.3.0.0.jar"/>
</path>
<path id="library.postgresql_jdbc.classpath">
<pathelement location="${basedir}/lib/postgresql-42.2.14.jre7.jar"/>
</path>
<path id="library.mysql_jdbc.classpath">
<pathelement location="${basedir}/lib/mysql-connector-java-8.0.21.jar"/>
</path>
<dirname property="module.simpledbtest.basedir" file="${ant.file}"/>
<property name="compiler.args.simpledbtest" value="-encoding UTF-8 -source 8 -target 8"/>
<property name="simpledbtest.output.dir" value="${module.simpledbtest.basedir}/out/production/SimpleDBTest"/>
<property name="simpledbtest.testoutput.dir" value="${module.simpledbtest.basedir}/out/test/SimpleDBTest"/>
<path id="simpledbtest.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="simpledbtest.module.production.classpath">
<path refid="library.apache_commons.classpath"/>
<path refid="library.oracle_jdbc.classpath"/>
<path refid="library.postgresql_jdbc.classpath"/>
<path refid="library.mysql_jdbc.classpath"/>
</path>
<path id="simpledbtest.runtime.production.module.classpath">
<pathelement location="${simpledbtest.output.dir}"/>
<path refid="library.apache_commons.classpath"/>
<path refid="library.oracle_jdbc.classpath"/>
<path refid="library.postgresql_jdbc.classpath"/>
<path refid="library.mysql_jdbc.classpath"/>
</path>
<path id="simpledbtest.module.classpath">
<pathelement location="${simpledbtest.output.dir}"/>
<path refid="library.apache_commons.classpath"/>
<path refid="library.oracle_jdbc.classpath"/>
<path refid="library.postgresql_jdbc.classpath"/>
<path refid="library.mysql_jdbc.classpath"/>
</path>
<path id="simpledbtest.runtime.module.classpath">
<pathelement location="${simpledbtest.testoutput.dir}"/>
<pathelement location="${simpledbtest.output.dir}"/>
<path refid="library.apache_commons.classpath"/>
<path refid="library.oracle_jdbc.classpath"/>
<path refid="library.postgresql_jdbc.classpath"/>
<path refid="library.mysql_jdbc.classpath"/>
</path>
<path id="simpledbtest.module.sourcepath">
<dirset dir="${module.simpledbtest.basedir}/../../java">
<include name="SimpleDBPerformanceTest/src"/>
</dirset>
</path>
<path id="simpledbtest.module.test.sourcepath">
<dirset dir="${module.simpledbtest.basedir}/../../java">
<include name="SimpleDBTest"/>
</dirset>
</path>
<target name="compile.module.simpledbtest" depends="compile.module.simpledbtest.production" description="Compile module SimpleDBTest"/>
<target name="compile.module.simpledbtest.production" description="Compile module SimpleDBTest; production classes">
<mkdir dir="${simpledbtest.output.dir}"/>
<javac destdir="${simpledbtest.output.dir}" fork="true">
<compilerarg line="${compiler.args.simpledbtest}"/>
<bootclasspath refid="simpledbtest.module.bootclasspath"/>
<classpath refid="simpledbtest.module.production.classpath"/>
<src refid="simpledbtest.module.sourcepath"/>
</javac>
<copy todir="${simpledbtest.output.dir}">
<fileset dir="${module.simpledbtest.basedir}/src">
<type type="file"/>
</fileset>
</copy>
</target>
<target name="clean.module.simpledbtest" description="cleanup module">
<delete dir="${simpledbtest.output.dir}"/>
<delete dir="${simpledbtest.testoutput.dir}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.simpledbtest" description="cleanup all"/>
<target name="build.modules" depends="init, clean, compile.module.simpledbtest" description="build all modules"/>
<target name="init.artifacts">
<property name="artifacts.temp.dir" value="${basedir}/__artifacts_temp"/>
<property name="artifact.output.simpledbtest:jar" value="${basedir}/out/artifacts/jar"/>
<mkdir dir="${artifacts.temp.dir}"/>
<property name="temp.jar.path.SimpleDBTest.jar" value="${artifacts.temp.dir}/SimpleDBTest.jar"/>
</target>
<target name="artifact.simpledbtest:jar" depends="init.artifacts, compile.module.simpledbtest" description="Build 'SimpleDBTest:jar' artifact">
<property name="artifact.temp.output.simpledbtest:jar" value="${artifacts.temp.dir}/SimpleDBTest_jar"/>
<mkdir dir="${artifact.temp.output.simpledbtest:jar}"/>
<jar destfile="${temp.jar.path.SimpleDBTest.jar}" duplicate="preserve" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="com.dom.DBLoadTest"/>
</manifest>
<zipfileset dir="${simpledbtest.output.dir}"/>
<zipfileset src="${basedir}/lib/ojdbc8-19.3.0.0.jar"/>
<zipfileset src="${basedir}/lib/ons-19.3.0.0.jar"/>
<zipfileset src="${basedir}/lib/oraclepki-19.3.0.0.jar"/>
<zipfileset src="${basedir}/lib/osdt_cert-19.3.0.0.jar"/>
<zipfileset src="${basedir}/lib/osdt_core-19.3.0.0.jar"/>
<zipfileset src="${basedir}/lib/simplefan-19.3.0.0.jar"/>
<zipfileset src="${basedir}/lib/ucp-19.3.0.0.jar"/>
<zipfileset src="${basedir}/lib/postgresql-42.2.14.jre7.jar"/>
<zipfileset src="${basedir}/lib/mysql-connector-java-8.0.21.jar"/>
<zipfileset src="${basedir}/lib/commons-cli-1.4.jar"/>
</jar>
<copy file="${temp.jar.path.SimpleDBTest.jar}" tofile="${basedir}/SimpleDBTest.jar"/>
</target>
<target name="build.all.artifacts" depends="artifact.simpledbtest:jar" description="Build all artifacts">
<delete dir="${artifacts.temp.dir}"/>
</target>
<target name="all" depends="build.modules, build.all.artifacts" description="build all"/>
</project>