Re: ${basedir} Windows and ${file.separator}
Shouldn't ${basedir} be resolved correctly on both windows and *nix? If that's the case, you could try using the '/' separator, since this works both on *nix and windows... However, if ${basedir} is not correctly resolved, you will probably still have the same issues... On Friday 07 September 2007 17:08, Andrew Leer wrote: Thanks Wayne... Submitted a bug... http://jira.codehaus.org/browse/MNG-3198 Thanks, Andrew J.Leer On 9/7/07, Wayne Fay [EMAIL PROTECTED] wrote: There are *always* some small differences in environments. Therefore, profiles are a way of handling those differences in Maven. ${file.separator} is simply not valid/available at this time for use in the pom. Feel free to file an RFE. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello, Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne Doesn't the defeat the purpose of having an environment portable build? And when I use ${basedir} I can't insert two ${file.separator}'s inside of that variable. I.E. ${basedir}=C:\workspace\dev\projectTest (under windows) I can't add an extra path separator that way Thank you, Andrew J. Leer On 9/7/07, Wayne Fay [EMAIL PROTECTED] wrote: Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator}log${file.separator}/log .app.directory This property is being used to write the location of a directory for holding log files, to a log4j.xml file. Now when I run some code to write to the log file, I get a file in the ${basedir} of the project called: devworkspacearchetypesTestlogSimpleTest21-1.0-SNAPSHOT_test.log (which contains the contents of the log file...) Sure this works, but it isn't really what I had in mind. Rather I'd like the log file to be written to the ${basedir}/log of my project. I looked in my ${basedir}/target/test-classes/log4j.xml and the value which is generated for the output of the logfile is: C:\dev\workspace\archetypesTest\log\SimpleTest21-1.0-SNAPSHOT_test. log My question is, does it need to be? C:\\dev\\workspace\\archetypesTest\\log\\SimpleTest21-1.0-SNAPSHOT_test .log And how can I do this without destorying the portability to linux by adding two ${file.seprator}'s? Thank you, Andrew J. Leer --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Roland Asmann CFC Informationssysteme Entwicklungsgesellschaft m.b.H Bäckerstrasse 1/2/7 A-1010 Wien FN 266155f, Handelsgericht Wien Tel.: +43/1/513 88 77 - 27 Fax.: +43/1/513 88 62 Email: [EMAIL PROTECTED] Web: www.cfc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
${basedir} Windows and ${file.separator}
Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator}log${file.separator}/log.app.directory This property is being used to write the location of a directory for holding log files, to a log4j.xml file. Now when I run some code to write to the log file, I get a file in the ${basedir} of the project called: devworkspacearchetypesTestlogSimpleTest21-1.0-SNAPSHOT_test.log (which contains the contents of the log file...) Sure this works, but it isn't really what I had in mind. Rather I'd like the log file to be written to the ${basedir}/log of my project. I looked in my ${basedir}/target/test-classes/log4j.xml and the value which is generated for the output of the logfile is: C:\dev\workspace\archetypesTest\log\SimpleTest21-1.0-SNAPSHOT_test.log My question is, does it need to be? C:\\dev\\workspace\\archetypesTest\\log\\SimpleTest21-1.0-SNAPSHOT_test.log And how can I do this without destorying the portability to linux by adding two ${file.seprator}'s? Thank you, Andrew J. Leer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ${basedir} Windows and ${file.separator}
Hello, Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne Doesn't the defeat the purpose of having an environment portable build? And when I use ${basedir} I can't insert two ${file.separator}'s inside of that variable. I.E. ${basedir}=C:\workspace\dev\projectTest (under windows) I can't add an extra path separator that way Thank you, Andrew J. Leer On 9/7/07, Wayne Fay [EMAIL PROTECTED] wrote: Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator}log${file.separator}/log.app.directory This property is being used to write the location of a directory for holding log files, to a log4j.xml file. Now when I run some code to write to the log file, I get a file in the ${basedir} of the project called: devworkspacearchetypesTestlogSimpleTest21-1.0-SNAPSHOT_test.log (which contains the contents of the log file...) Sure this works, but it isn't really what I had in mind. Rather I'd like the log file to be written to the ${basedir}/log of my project. I looked in my ${basedir}/target/test-classes/log4j.xml and the value which is generated for the output of the logfile is: C:\dev\workspace\archetypesTest\log\SimpleTest21-1.0-SNAPSHOT_test.log My question is, does it need to be? C:\\dev\\workspace\\archetypesTest\\log\\SimpleTest21-1.0-SNAPSHOT_test.log And how can I do this without destorying the portability to linux by adding two ${file.seprator}'s? Thank you, Andrew J. Leer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ${basedir} Windows and ${file.separator}
Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator}log${file.separator}/log.app.directory This property is being used to write the location of a directory for holding log files, to a log4j.xml file. Now when I run some code to write to the log file, I get a file in the ${basedir} of the project called: devworkspacearchetypesTestlogSimpleTest21-1.0-SNAPSHOT_test.log (which contains the contents of the log file...) Sure this works, but it isn't really what I had in mind. Rather I'd like the log file to be written to the ${basedir}/log of my project. I looked in my ${basedir}/target/test-classes/log4j.xml and the value which is generated for the output of the logfile is: C:\dev\workspace\archetypesTest\log\SimpleTest21-1.0-SNAPSHOT_test.log My question is, does it need to be? C:\\dev\\workspace\\archetypesTest\\log\\SimpleTest21-1.0-SNAPSHOT_test.log And how can I do this without destorying the portability to linux by adding two ${file.seprator}'s? Thank you, Andrew J. Leer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ${basedir} Windows and ${file.separator}
There are *always* some small differences in environments. Therefore, profiles are a way of handling those differences in Maven. ${file.separator} is simply not valid/available at this time for use in the pom. Feel free to file an RFE. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello, Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne Doesn't the defeat the purpose of having an environment portable build? And when I use ${basedir} I can't insert two ${file.separator}'s inside of that variable. I.E. ${basedir}=C:\workspace\dev\projectTest (under windows) I can't add an extra path separator that way Thank you, Andrew J. Leer On 9/7/07, Wayne Fay [EMAIL PROTECTED] wrote: Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator}log${file.separator}/log.app.directory This property is being used to write the location of a directory for holding log files, to a log4j.xml file. Now when I run some code to write to the log file, I get a file in the ${basedir} of the project called: devworkspacearchetypesTestlogSimpleTest21-1.0-SNAPSHOT_test.log (which contains the contents of the log file...) Sure this works, but it isn't really what I had in mind. Rather I'd like the log file to be written to the ${basedir}/log of my project. I looked in my ${basedir}/target/test-classes/log4j.xml and the value which is generated for the output of the logfile is: C:\dev\workspace\archetypesTest\log\SimpleTest21-1.0-SNAPSHOT_test.log My question is, does it need to be? C:\\dev\\workspace\\archetypesTest\\log\\SimpleTest21-1.0-SNAPSHOT_test.log And how can I do this without destorying the portability to linux by adding two ${file.seprator}'s? Thank you, Andrew J. Leer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ${basedir} Windows and ${file.separator}
Thanks Wayne... Submitted a bug... http://jira.codehaus.org/browse/MNG-3198 Thanks, Andrew J.Leer On 9/7/07, Wayne Fay [EMAIL PROTECTED] wrote: There are *always* some small differences in environments. Therefore, profiles are a way of handling those differences in Maven. ${file.separator} is simply not valid/available at this time for use in the pom. Feel free to file an RFE. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello, Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne Doesn't the defeat the purpose of having an environment portable build? And when I use ${basedir} I can't insert two ${file.separator}'s inside of that variable. I.E. ${basedir}=C:\workspace\dev\projectTest (under windows) I can't add an extra path separator that way Thank you, Andrew J. Leer On 9/7/07, Wayne Fay [EMAIL PROTECTED] wrote: Use 2 profiles that are auto-activated based on OS and hard-code the proper value in both. Wayne On 9/7/07, Andrew Leer [EMAIL PROTECTED] wrote: Hello all, I am using Maven2 on Windows XP Lets say that I have this property in my pom.xml file: log.app.directory${basedir}${file.separator}log${file.separator}/log.app.directory This property is being used to write the location of a directory for holding log files, to a log4j.xml file. Now when I run some code to write to the log file, I get a file in the ${basedir} of the project called: devworkspacearchetypesTestlogSimpleTest21-1.0-SNAPSHOT_test.log (which contains the contents of the log file...) Sure this works, but it isn't really what I had in mind. Rather I'd like the log file to be written to the ${basedir}/log of my project. I looked in my ${basedir}/target/test-classes/log4j.xml and the value which is generated for the output of the logfile is: C:\dev\workspace\archetypesTest\log\SimpleTest21-1.0-SNAPSHOT_test.log My question is, does it need to be? C:\\dev\\workspace\\archetypesTest\\log\\SimpleTest21-1.0-SNAPSHOT_test.log And how can I do this without destorying the portability to linux by adding two ${file.seprator}'s? Thank you, Andrew J. Leer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]