comparison build.xml @ 29:e11623cfc457

Move to JDK 1.5 as a minimum.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 12 Jun 2010 10:12:32 +0100
parents 7b6200980805
children
comparison
equal deleted inserted replaced
28:4b2f23b6feca 29:e11623cfc457
10 <property name="src" location="src"/> 10 <property name="src" location="src"/>
11 <property name="testsrc" location="test"/> 11 <property name="testsrc" location="test"/>
12 <property name="installer_base" location="installer"/> 12 <property name="installer_base" location="installer"/>
13 <property name="build" location="build"/> 13 <property name="build" location="build"/>
14 <property name="installer_build" location="installer_build"/> 14 <property name="installer_build" location="installer_build"/>
15 <property name="db_root" location="dbjava/je-3.2.68/"/> 15 <property name="db_root" location="dbjava/je-3.2.93/"/>
16 <property name="bdb" location="dbjava/je.jar"/> 16 <property name="bdb" location="dbjava/je.jar"/>
17 <property name="jini_root" location="${JINI_HOME}"/> 17 <property name="jini_root" location="${JINI_HOME}"/>
18 <property name="jdk_root" location="${JDK_HOME}"/> 18 <property name="jdk_root" location="${JDK_HOME}"/>
19 <property name="stats" location="examples/statsclient"/> 19 <property name="stats" location="examples/statsclient"/>
20 <property name="statsbuild" location="examples/statsclient"/> 20 <property name="statsbuild" location="examples/statsclient"/>
83 83
84 <target name="compile" depends="init" 84 <target name="compile" depends="init"
85 description="compile the source " > 85 description="compile the source " >
86 <!-- Compile the java code from ${src} into ${build} --> 86 <!-- Compile the java code from ${src} into ${build} -->
87 <javac destdir="${build}" debug="true" 87 <javac destdir="${build}" debug="true"
88 source="1.4"
89 target="1.4"
90 debuglevel="lines,vars,source" 88 debuglevel="lines,vars,source"
91 classpathref="allclasses"> 89 classpathref="allclasses">
92 <src path="${src}"/> 90 <src path="${src}"/>
93 <src path="${testsrc}"/> 91 <src path="${testsrc}"/>
94 </javac> 92 </javac>
122 </batchtest> 120 </batchtest>
123 </junit> 121 </junit>
124 </target> 122 </target>
125 123
126 <target name="installer" depends="jars"> 124 <target name="installer" depends="jars">
127 <!-- Installer rule, not ready yet - sorting out source code
128
129 <delete dir="${installer_build}"/> 125 <delete dir="${installer_build}"/>
130 <mkdir dir="${installer_build}"/> 126 <mkdir dir="${installer_build}"/>
131 <javac srcdir="${installer_base}/com/incax/install/blitz" destdir="${installer_build}" debug="true" 127 <javac srcdir="${installer_base}/com/incax/install/blitz" destdir="${installer_build}" debug="true"
132 source="1.4"
133 target="1.4"
134 debuglevel="lines,vars,source" 128 debuglevel="lines,vars,source"
135 classpathref="allclasses"/> 129 classpathref="allclasses"/>
136 <copy todir="${installer_build}/resources"> 130 <copy todir="${installer_build}/resources">
137 <fileset dir="${installer_base}/resources"> 131 <fileset dir="${installer_base}/resources">
138 </fileset> 132 </fileset>
151 </copy> 145 </copy>
152 <copy file="${bdb}" todir="${installer_build}/resources/extract/dbjava"> 146 <copy file="${bdb}" todir="${installer_build}/resources/extract/dbjava">
153 </copy> 147 </copy>
154 <jar destfile="installer.jar" basedir="${installer_build}" 148 <jar destfile="installer.jar" basedir="${installer_build}"
155 manifest="${installer_base}/META-INF/MANIFEST.MF"/> 149 manifest="${installer_base}/META-INF/MANIFEST.MF"/>
156
157 -->
158
159 </target> 150 </target>
160 151
161 <target name="release" 152 <target name="release"
162 description="build the components into directories for release"> 153 description="build the components into directories for release">
163 <antcall target="all"/> 154 <antcall target="all"/>
170 <!-- Installer not included, in transition to the new version 161 <!-- Installer not included, in transition to the new version
171 162
172 <copy todir="${release}" file="installer.jar"/> 163 <copy todir="${release}" file="installer.jar"/>
173 164
174 --> 165 -->
175 166 <copy todir="${release}">
167 <fileset dir="${basedir}">
168 <include name="installer.jar"/>
169 </fileset>
170 </copy>
176 <copy todir="${release}/blitz_user/docs"> 171 <copy todir="${release}/blitz_user/docs">
177 <fileset dir="docs"> 172 <fileset dir="docs">
178 <exclude name="javadocs/**"/> 173 <exclude name="javadocs/**"/>
179 </fileset> 174 </fileset>
180 </copy> 175 </copy>
418 <target name="javadoc" description="Generate developer grade docos for the code"> 413 <target name="javadoc" description="Generate developer grade docos for the code">
419 <javadoc sourcepath="${testsrc}:${src}:${jini_root}/source/src:${db_root}/src" 414 <javadoc sourcepath="${testsrc}:${src}:${jini_root}/source/src:${db_root}/src"
420 maxmemory="256m" 415 maxmemory="256m"
421 destdir="docs/javadocs" 416 destdir="docs/javadocs"
422 private="true" 417 private="true"
423 packagenames="org.*"> 418 packagenames="org.*,EDU.*">
424 <tag name="todo" scope="all" description="todo:"/> </javadoc> 419 <tag name="todo" scope="all" description="todo:"/> </javadoc>
425 420
426 </target> 421 </target>
427 422
428 <target name="dumpprops" depends="compile" 423 <target name="dumpprops" depends="compile"
644 description="test basic notify with ANY leases"> 639 description="test basic notify with ANY leases">
645 <java classname="org.dancres.blitz.remote.test.SequenceNumberTest" 640 <java classname="org.dancres.blitz.remote.test.SequenceNumberTest"
646 classpathref="allclasses"/> 641 classpathref="allclasses"/>
647 </target> 642 </target>
648 643
644 <target name="txnstress" depends="compile">
645 <nbprofiledirect interactive="true" jvmargsproperty="my.agent.property">
646 <classpath>
647 <pathelement path="${allclasses}"/>
648 <pathelement path="${java.class.path}"/>
649 </classpath>
650 </nbprofiledirect>
651
652 <java classname="org.dancres.blitz.test.TxnStress" jvm="${profiler.info.jvm}"
653 classpathref="allclasses">
654 <jvmarg value="${my.agent.property}"/>
655 <arg value="8"/>
656 <arg value="200"/>
657 <arg value="0"/>
658 </java>
659 </target>
660
649 <target name="testwritespeed" depends="compile" 661 <target name="testwritespeed" depends="compile"
650 description="test write speed"> 662 description="test write speed">
651 <java classname="org.dancres.blitz.WriteSpeedTest" 663 <java classname="org.dancres.blitz.WriteSpeedTest"
652 classpathref="allclasses"> 664 classpathref="allclasses">
653 <arg value="4000"/> 665 <arg value="4000"/>