Derby
  1. Derby
  2. DERBY-5023

Cannot find Ant libraries when building from NetBeans

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: 10.8.1.2
    • Component/s: Build tools
    • Labels:
      None

      Description

      Building Derby doesn't work out of the box in NetBeans. The wiki page http://wiki.apache.org/db-derby/BuildingDerby instructs NetBeans users to specify the ant.library.dir property in order to get the build working.

      The Ant documentation says the following about the ant.library.dir property: "The following property is only set if Ant is started via the Launcher class (which means it may not be set inside IDEs either)" - http://ant.apache.org/manual/properties.html

      Since the property is not guaranteed to be set, I suggest that we replace references to "$

      {ant.library.dir}

      /ant.jar" with references to "$

      {ant.core.lib}

      " in the build scripts. According to the above mentioned Ant manual page the ant.core.lib property should always be available and point to ant.jar. Changing this makes it possible to build Derby from NetBeans with no special customization.

      1. properties.diff
        1 kB
        Knut Anders Hatlen

        Activity

        Knut Anders Hatlen created issue -
        Knut Anders Hatlen made changes -
        Field Original Value New Value
        Affects Version/s 10.7.1.1 [ 12315564 ]
        Component/s Build tools [ 11405 ]
        Knut Anders Hatlen made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Knut Anders Hatlen made changes -
        Attachment properties.diff [ 12470849 ]
        Knut Anders Hatlen made changes -
        Description Building Derby doesn't work out of the box in NetBeans. The wiki page http://wiki.apache.org/db-derby/BuildingDerby instructs NetBeans users to specify the ant.library.dir property in order to get the build working.

        The Ant documentation says the following about the ant.library.dir property: "The following property is only set if Ant is started via the Launcher class (which means it may not be set inside IDEs either)"

        Since the property is not guaranteed to be set, I suggest that we replace references to "${ant.library.dir}/ant.jar" with references to "${ant.core.lib}" in the build scripts. According to the above mentioned Ant manual page the ant.core.lib property should always be available and point to ant.jar. Changing this makes it possible to build Derby from NetBeans with no special customization.
        Building Derby doesn't work out of the box in NetBeans. The wiki page http://wiki.apache.org/db-derby/BuildingDerby instructs NetBeans users to specify the ant.library.dir property in order to get the build working.

        The Ant documentation says the following about the ant.library.dir property: "The following property is only set if Ant is started via the Launcher class (which means it may not be set inside IDEs either)" - http://ant.apache.org/manual/properties.html

        Since the property is not guaranteed to be set, I suggest that we replace references to "${ant.library.dir}/ant.jar" with references to "${ant.core.lib}" in the build scripts. According to the above mentioned Ant manual page the ant.core.lib property should always be available and point to ant.jar. Changing this makes it possible to build Derby from NetBeans with no special customization.
        Knut Anders Hatlen made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Issue & fix info [Patch Available]
        Fix Version/s 10.8.0.0 [ 12315561 ]
        Resolution Fixed [ 1 ]
        Rick Hillegas made changes -
        Fix Version/s 10.8.1.1 [ 12316356 ]
        Fix Version/s 10.8.1.0 [ 12315561 ]
        Rick Hillegas made changes -
        Fix Version/s 10.8.1.2 [ 12316362 ]
        Fix Version/s 10.8.1.1 [ 12316356 ]
        Gavin made changes -
        Workflow jira [ 12545247 ] Default workflow, editable Closed status [ 12798611 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development