Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6860

Automatic download of junit.jar broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.13.1.0
    • Fix Version/s: 10.13.1.0
    • Component/s: Build tools
    • Labels:
      None
    • Issue & fix info:
      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

            Activity

              People

              • Assignee:
                knutanders Knut Anders Hatlen
                Reporter:
                knutanders Knut Anders Hatlen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: