Uploaded image for project: 'Maven Antrun Plugin'
  1. Maven Antrun Plugin
  2. MANTRUN-86

Cannot handle multiple tasks elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1
    • None
    • None

    Description

      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>install</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks if="jboss.local.repository">
                <property name="version.id" value="${project.version}"/>
                <property name="jboss.local.repository" value="${jboss.local.repository}"/>
                <ant antfile="ant/build-install.xml" target="install"/>
              </tasks>
              <tasks unless="jboss.local.repository">
                <echo message="Cannot install to jboss.local.repository=${jboss.local.repository}"/>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
      

      Always executes the last tasks element although 'jboss.local.repository' is set

      [INFO] [antrun:run

      {execution: default}

      ]
      [INFO] Executing tasks
      [echo] Cannot install to jboss.local.repository=/home/tdiesler/svn/jboss.local.repository
      [INFO] Executed tasks

      Attachments

        Issue Links

          Activity

            People

              pgier Paul Gier
              tdiesler Thomas Diesler
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: