Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
10.13.1.0
-
None
-
Workaround attached
Description
Automatic download of junit.jar seems to be broken. If you don't already have a copy in tools/java, "ant all" fails like this:
junit_check: BUILD FAILED /code/derby/trunk/build.xml:66: The following error occurred while executing this line: /code/derby/trunk/build.xml:177: junit property is set to /code/derby/trunk/tools/java/junit.jar, but there is no junit.jar there.
The problem seems to be that junit_check refuses to continue if the junit property is set, but does not point to an existing file. This property is set when the setCompilerProperties target, which runs before junit_check, loads tools/ant/properties/extrapath.properties, as extrapath.properties contains the following line:
junit=${javatools.dir}/junit.jar
Since the install_junit target depends on the check_junit target, this prevents the build script from downloading junit.jar automatically.
Workaround: run "ant install_junit" before "ant all"
Attachments
Issue Links
- is broken by
-
DERBY-6857 Deprecate support for building Derby under JDKs 6 and 7
-
- Closed
-