Isabella Silva created MDEP-470:
-----------------------------------

             Summary: Property fileSeparator overrides definition on property 
pathSeparator
                 Key: MDEP-470
                 URL: https://jira.codehaus.org/browse/MDEP-470
             Project: Maven Dependency Plugin
          Issue Type: Bug
          Components: build-classpath
    Affects Versions: 2.9, 2.8
         Environment: Windows
            Reporter: Isabella Silva


I am trying to generate a classpath to use as a multi-line java property value 
like this:

libs/lib1.jar,\
libs/lib2.jar,\ 
libs/lib3.jar,\     
libs/lib4.jar   

With this configuration on my pom:

<configuration>         
   <outputProperty>my.classpath</outputProperty>
   <prefix>${libs.dir}</prefix>
   <pathSeparator>,\${line.separator}</pathSeparator>
   <fileSeparator>/</fileSeparator>
</configuration>

It works fine on Unix environments (where the native file separator matches 
that of my configuration). On Windows, though, I get this (wrong) result:

libs/lib1.jar,/
libs/lib2.jar,/ 
libs/lib3.jar,/     
libs/lib4.jar 

Notice that I've configured the path separator to use the '\' character, not 
the system native file separator. It seems the file separator is somehow 
overriding the pathSeparator configuration.




--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to