Daniel John Debrunner wrote:
I'm trying to setup one ant file that will call the derby top-level
file to set a classpath and then execute the junit tests.
E.g. logically
CLASSPATH="/work/dan/derby/trunk/classes" ant junit-autoloadtest
So I have in a separate build file:
<target name="test">
<!-- need to set classpath here somehow -->
<ant antfile="build.xml" target="junit-autoloadtest">
</target>
But I need to add something to set the classpath and then make sure
the derby junit-oneclass picks it up.
Hi Dan,
I don't have any clever ideas. Instead of invoking the <ant> task, you
could crank up a subprocess using either the <java> or <exec> tasks.
That would let you change the classpath.
Regards,
-Rick
Any ideas?
Can I used the refid option of classpath (not well documented at ant)
somehow with changes to junit targets in build.xml to pick up an
explicit classpath (e.g. derby.junit.classpath) if set, otherwise use
the default setting?
This is to get some continuous integration testing with CruiseControl.
Thanks for any help,
Dan.