You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2008/09/06 22:41:49 UTC
[jira] Moved: (MSHARED-60) Filtering ${foo.file} evaluates to in
full path to pom.xml
[ http://jira.codehaus.org/browse/MSHARED-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy moved MRESOURCES-73 to MSHARED-60:
-----------------------------------------------
Affects Version/s: (was: 2.2)
maven-filtering-1.0-beta-1
Fix Version/s: (was: 2.3)
maven-filtering-1.0-beta-2
Key: MSHARED-60 (was: MRESOURCES-73)
Project: Maven Shared Components (was: Maven 2.x Resources Plugin)
> Filtering ${foo.file} evaluates to in full path to pom.xml
> ----------------------------------------------------------
>
> Key: MSHARED-60
> URL: http://jira.codehaus.org/browse/MSHARED-60
> Project: Maven Shared Components
> Issue Type: Bug
> Affects Versions: maven-filtering-1.0-beta-1
> Environment: Windows XP, Maven 2.0.2
> Reporter: Olivier Lamy
> Assignee: Olivier Lamy
> Priority: Critical
> Fix For: maven-filtering-1.0-beta-2
>
>
> If an unresolved variable is encountered, the plugin simply does not replace the variable in the target file.
> If this unresolved variable however ends in ".file}" it will evaluate to a file object that targets the current pom. This results in the replacement being the complete path to that pom (in the 2.1 version of the plugin this results in a ClassCastException).
> The workaround is, of course, not to filter the affected files.
> Though this will not work if other variables in the affected files do need to be replaced.
--
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