Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3763

CLONE -Using the Ant task with multiple targets fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.5, 1.5.8, 1.6.4, 1.7-beta-1
    • 1.7-beta-2, 1.6.6
    • Ant integration
    • None
    • Windows and Linux
      Java 1.5
      Ant 1.6.5

    Description

      From the mailing list wrap-up post by Dierk:

      <quote>
      def ant = new AntBuilder()
      ant.ant(antfile:'build.xml'){
      target(name:'one')
      }

      is working but

      def ant = new AntBuilder()
      ant.ant(antfile:'build.xml'){
      target(name:'one')
      target(name:'two')
      }

      is not. The flag 'targetAttributeSet' is set erroneously in org.apache.tools.ant.taskdefs.Ant#addConfiguredTarget.
      (possible Ant bug?)
      </quote>

      (Having looked at the Ant source myself, I can only see targetAttributeSet being set in setTarget, so personally I suspect it's not an Ant bug.)

      To find the mailing list thread, search for a subject of "AntBuilder.ant.target not working?" on Feb 23rd/24th 2006. (Web access to mailing list is down right now, hence the lack of URL.)

      Attachments

        1. groovyant.tar.gz
          0.4 kB
        2. groovy3763C.patch
          4 kB
          paulk_asert

        Issue Links

          Activity

            People

              paulk Paul King
              binil Binil Thomas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: