Hi!

Are we taking about the same thing? I am taking about Java System Properties
and not System Properties. It was not replaced when I first tried (perhaps I
was doing something wrong). the documentation only mentions Java System
Properties with filtering.

Does the Java System Properties have a prefix or can I just use
${file.separator} in the configuration section? 

I thought I could use forward slashes for paths too, but the problem is
caused with a "home-made" plugin. The plugin takes the output file as a
parameter in the configuration section and I don't believe that slashes (/)
are replaced with backslashes (\) on the fly. Should I handle this in my
plugin perhaps?

Sorry if I am missing out on something trivial here. I don't even run
Windows myself, so I haven't tested - all I got was a bug report from a team
member:

Example:
${project.build.directory}/generated-resources/buildinfo-maven-${project.build.finalName}.xml

This results in:
C:\myrepository\.../generated-resources/buildinfo-maven-....

Regards,
Jimisola


Eric Redmond wrote:
> 
> You can use System properties. However, you don't need to use
> file.seperator... you can just use forward slash for paths.
> 
> Eric
> 
> On 8/24/06, Jimisola Laursen <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi!
>>
>> Been reading through the documentation on maven.apache.org and the book,
>> but
>> I can't find any information on if it is possible to use Java System
>> Properties such as file.separator, user.name and more
>> (
>> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()
>> )
>> in pom.xml?
>>
>> I have a problem with file separators because we use both Linux and
>> Windows
>> when developing and it therefore looks as I if I need to use
>> ${file.separator} in our common POM.
>>
>> Regards,
>> Jimisola
>> --
>> View this message in context:
>> http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5973537
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Eric Redmond
> http://codehaus.org/~eredmond
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5978571
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to