Hi,would it make sense to define the tasks to start/stop Derby in the targets "start-db"/"stop-db", where they are actually used instead of in "build-tests"? This way, you can run the tests w/o running "build-tests", once the tests are build, and the environment doesn't change. The new build.xml and diff are attached.
Thanks!
-- markus.
bash-3.00$ cat build.xml.diff
Index: build.xml
===================================================================
--- build.xml (Revision 493039)
+++ build.xml (Arbeitskopie)
@@ -891,12 +891,6 @@
excludes="**/*.java, **/*.html, **/*.png" />
</copy>
- <!-- register Ant tasks that were just built -->
- <taskdef name="startdb"
classname="org.apache.roller.ant.StartDerbyTask"
-
classpath="${ro.tools}/buildtime/derby.jar;${ro.tools}/buildtime/derbynet.jar;${build.compile.tests}"
/>
- <taskdef name="stopdb" classname="org.apache.roller.ant.StopDerbyTask"- classpath="${ro.tools}/buildtime/derby.jar;${ro.tools}/buildtime/derbynet.jar;${build.compile.tests}" />
-
<!--
Copy web config files to ${build.tests} to make them available for
testing.
This includes the WEB-INF directory, minus jsps
@@ -1176,6 +1170,8 @@
</target>
<target name="start-db" description="Starts built-in database">
+ <taskdef name="startdb"
classname="org.apache.roller.ant.StartDerbyTask"
+
classpath="${ro.tools}/buildtime/derby.jar;${ro.tools}/buildtime/derbynet.jar;${build.compile.tests}"
/>
<startdb database="${build.tests}/derby-system/roller" port="3219" />
<!--
<delete dir="${build.tests}/derby-system/roller" />
@@ -1191,6 +1187,8 @@
</target>
<target name="stop-db" description="Drop tables and stops the built-in
database">
+ <taskdef name="stopdb" classname="org.apache.roller.ant.StopDerbyTask"+ classpath="${ro.tools}/buildtime/derby.jar;${ro.tools}/buildtime/derbynet.jar;${build.compile.tests}" />
<stopdb port="3219"/>
<!--
<delete dir="${build.tests}/derby-system/roller" />
build.xml.jar
Description: application/jar
