maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Casey (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MNG-3747) relative build paths are not path-translated when using prefixed expressions (eg. project.build.directory) in plugin configurations
Date Tue, 09 Sep 2008 02:00:48 GMT

    [ http://jira.codehaus.org/browse/MNG-3747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=147384#action_147384
] 

John Casey commented on MNG-3747:
---------------------------------

One additional point critical to reproducing this problem is to use a String configuration
that *embeds* the expression, rather than having the expression as the whole value or even
starting with it...

> relative build paths are not path-translated when using prefixed expressions (eg. project.build.directory)
in plugin configurations
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-3747
>                 URL: http://jira.codehaus.org/browse/MNG-3747
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.1.0-M1
>            Reporter: John Casey
>            Assignee: John Casey
>             Fix For: 2.1.0-M1
>
>
> example:
> {noformat}
>   <build>
>     <directory>bld</directory>
>     <plugins>
>       <plugin>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <executions>
>           <execution>
>             <id>test</id>
>             <phase>test</phase>
>             <goals>
>               <goal>run</goal>
>             </goals>
>             <configuration>
>               <tasks>
>                 <ant dir="${project.build.directory}/test-classes" antfile="${project.build.directory}/test-classes/test.build.xml"
/>
>               </tasks>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
> {noformat}
> When the antrun plugin executes, the expressions will be resolved with relative paths,
not absolute ones (as would be the case if they were run through the pathTranslator).
> This is a problem with the interpolation post-processor that handles path translation,
because it doesn't have any sensitivity to prefixed expressions. In other words, it'll handle
build.directory but not project.build.directory.

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