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

 

 

Reply via email to