Derby
  1. Derby
  2. DERBY-4341

Building with ant all with a different CLASSPATH defined causes the build to fail

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: 10.6.1.0
    • Component/s: Build tools
    • Labels:
      None
    • Urgency:
      Normal
    • Issue & fix info:
      Newcomer, Workaround attached

      Description

      The problem happens when we are trying to compile the source code in a folder and have the CLASSPATH variable set to a different code tree folder. This results in compile failures like the following:

      runmessagecheck:
      [runMessageBundleTest] WARNING: Message id 22011.S.1 in messages_en.properties is not referenced in either SQLState.java or MessageId.java
      [runMessageBundleTest] WARNING: Message id 42Y03.S.0 in messages_en.properties is not referenced in either SQLState.java or MessageId.java
      [runMessageBundleTest] WARNING: Message id 42Y03.S.1 in messages_en.properties is not referenced in either SQLState.java or MessageId.java
      [runMessageBundleTest] WARNING: Message id 42Y03.S.2 in messages_en.properties is not referenced in either SQLState.java or MessageId.java

      BUILD FAILED
      /home/tiago/Desktop/DerbyStuff/CodeTenFiveTwo/build.xml:514: Message check failed.
      See error in build output or call ant runmessagecheck.

      Total time: 1 minute 11 seconds

      This should be an easy fix and it is marked as a bug, since it doesn't seem very logical for the compiling process to be CLASSPATH-dependent. Note that unsetting the CLASSPATH altogether allows the compile to run without errors, so clearly this variable isn't needed and shouldn't be used when it is set.

      1. derby-4341.patch
        2 kB
        John Storta Jr.

        Activity

        Gavin made changes -
        Workflow jira [ 12472568 ] Default workflow, editable Closed status [ 12802770 ]
        Knut Anders Hatlen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Bryan Pendleton made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 10.6.0.0 [ 12313727 ]
        Resolution Fixed [ 1 ]
        John Storta Jr. made changes -
        Attachment derby-4341.patch [ 12435931 ]
        John Storta Jr. made changes -
        Issue & fix info [Newcomer] [Newcomer, Workaround attached]
        John Storta Jr. made changes -
        Field Original Value New Value
        Assignee John Storta Jr. [ jsguru72 ]
        Tiago R. Espinha created issue -

          People

          • Assignee:
            John Storta Jr.
            Reporter:
            Tiago R. Espinha
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development