Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-11156

replace <exec executable="wget"> w/ Ant 1.8's <get> in build/aggregate/build.xml#collect.zips

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta3
    • 3.3.0.Beta3
    • build
    • None

      In /build/aggregate/build.xml, the <target name="collect.zips"/> uses <exec executable="wget"> instead of <get> to fetch zips and metadata from download.jboss.org.

      Given this script was developed before Ant 1.8, I believe the reasons for this were:

      a) --tries=3 allows multiple attempts to get the same file
      b) return property (wget.return) could be checked for success (0 = good, non-zero = fail), and simply continue (rather than failing) if the file couldn't be loaded

      With Ant 1.8.0:

      a) retries="3" allows multiple attempts to get the same file (on by default)
      b) ignoreerrors="true" should permit a failed download to not fail the script

      Switching from Ant 1.7 + <exec executable="wget"> to Ant 1.8 and <get> would make this script work regardless of platform on which it's run (eg., work on Windows and Mac).

            nickboldt Nick Boldt
            nickboldt Nick Boldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: