You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/12/18 13:43:20 UTC

[jira] Closed: (MNG-2688) Cannot filter system properties in 2.0.4

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

Brett Porter closed MNG-2688.
-----------------------------

         Assignee: Brett Porter
       Resolution: Cannot Reproduce
    Fix Version/s:     (was: Reviewed Pending Version Assignment)

working in 2.1.0-M1

> Cannot filter system properties in 2.0.4
> ----------------------------------------
>
>                 Key: MNG-2688
>                 URL: http://jira.codehaus.org/browse/MNG-2688
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Bootstrap & Build
>    Affects Versions: 2.0.4
>         Environment: Windows XP, sp2
>            Reporter: Chad Ellison
>            Assignee: Brett Porter
>
> I would like to filter a system property, so that a property within my application.properties files is replaced at runtime. The instructions at http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files? are not working. 
> Specifically, in my application.propertiies file I have a variable defined "command.line.prop=${command.line.prop}" and then when I run...
> mvn process-resources "-Dcommand.line.prop=hello again"
> ... I would expect the property to be replaced by "hello again", but it is not. It is worth noting that Java variables like ${java.version} are also not filtered.

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