Good day to you, Adrien,

Last time I tried, the workaround in [1] works.

Cheers,
Franz

[1] http://jira.codehaus.org/browse/MRESOURCES-29


Geymond, Adrien wrote:
> 
> Hello,
> 
>  
> 
> I am using maven 2.0 and filtering. I am facing the following issue:
> 
>  
> 
> I have the following entry in my log4j.properties:
> 
> log4j.appender.spproll.File=${spp_log_path}/${weblogic.Name}_spp-web.log
> 
>  
> 
> There are 2 variables: 
> 
>  1/ ${spp_log_path} has to be replaced by maven process-resources
> 
>  2/ ${weblogic.Name} has to stay as it is because it is used at runtime
> by log4j
> 
>  
> 
> After the maven process-resources, my string should be like that:
> 
> log4j.appender.spproll.File=/tmp/logs/${weblogic.Name}_spp-web.log
> 
>  
> 
> Nevertheless, I am currently getting a string like that because the
> variables weblogic.Name does not exist in my filters file: 
> 
> log4j.appender.spproll.File=/tmp/spp/spplogs/Unnamed -
> com.hp.spp:spp-web:war:2.0-b10-SNAPSHOT/-spp-web.log
> 
>  
> 
> So my question is the following: is there a way to escape the variables
> that does not have to be replaced during the build?
> 
>  
> 
> If not, Does any body have a workaround?
> 
>  
> 
> Thank you by advance for your help...
> 
>  
> 
> Kind regards,
> 
>  
> 
> Adrien
> 
>  
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-there-a-way-to-escape-variables-during-process-resources-tf2940317s177.html#a8237027
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to