Create a variable called ${basedir.log4j} -----------------------------------------
Key: MNG-3199 URL: http://jira.codehaus.org/browse/MNG-3199 Project: Maven 2 Issue Type: Sub-task Components: Logging, POM, POM::Encoding, Profiles Affects Versions: 2.0.7 Reporter: Andrew J. Leer Create a variable that will be usable within a log4j.xml file for specifying the location of the file. In windows specifying the path using ${basedir} currently results in a variable like this: ${basedir}=C:\dev\workspace\project log4j requires that you specify the path to the log file like so (even under windows): <appender name="FILE_APPENDER" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="c:/dev/workspace/project/file.log" /> <param name="Append" value="true" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d [%t] %-5p [[[[%c]]]] (((%F:%L))) ___%C___ - %m%n"/> </layout> </appender> So the ${basedir.log4j} variable needs to equate to: ${basedir.log4j}=c:/dev/workspace/project/file.log -- 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