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

Cannot find Ant libraries when building from NetBeans

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.7.1.1
    • 10.8.1.2
    • Build tools
    • 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.

      Attachments

        1. properties.diff
          1 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: