maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MANTRUN-86) Cannot handle multiple tasks elements
Date Mon, 14 Apr 2008 12:25:58 GMT

     [ http://jira.codehaus.org/browse/MANTRUN-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Bentmann updated MANTRUN-86:
-------------------------------------

    Description: 
{code:xml}
<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>
{code}

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



  was:
      <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




> Cannot handle multiple tasks elements
> -------------------------------------
>
>                 Key: MANTRUN-86
>                 URL: http://jira.codehaus.org/browse/MANTRUN-86
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Bug
>            Reporter: Thomas Diesler
>
> {code:xml}
> <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>
> {code}
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message