[ http://jira.codehaus.org/browse/MDEP-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_119978 ]
David Biesack commented on MDEP-89: ----------------------------------- Are the options named file.separator and path.separator or fileSeparator pathSeparator as documented at [http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html] which says fileSeparator String Override the char used between the paths. This field is initialized to contain the first character of the value of the system property file.separator. On UNIX systems the value of this field is '/'; on Microsoft Windows systems it is '\'. The default is File.separator pathSeparator String Override the char used between path folders. The system-dependent path-separator character. This field is initialized to contain the first character of the value of the system property path.separator. This character is used to separate filenames in a sequence of files given as a path list. On UNIX systems, this character is ':'; on Microsoft Windows systems it is ';'. However, when I try those, they do not seem to work. On Windows, running maven 2.0.7, I always get \ for the file separator char and : (not ; as documeted for Windows) for the path separator char. {noformat} <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>build-classpath</id> <phase>generate-sources</phase> <goals> <goal>build-classpath</goal> </goals> <configuration> <cpFile>${project.build.directory}/classpath.txt</cpFile> <regenerateFile>true</regenerateFile> <includeTypes>jar</includeTypes> <excludeClassifers>sources</excludeClassifers> <prefix>$M2_REPO</prefix> <pathSeparator>:</pathSeparator> <fileSeparator>/</fileSeparator> </configuration> </execution> </executions> </plugin> {noformat} I also tried {noformat} <file.separator>/</file.separator> {noformat} with no change. > change separators in build-classpath > ------------------------------------ > > Key: MDEP-89 > URL: http://jira.codehaus.org/browse/MDEP-89 > Project: Maven 2.x Dependency Plugin > Issue Type: Improvement > Components: build-classpath > Affects Versions: 2.0-alpha-5 > Environment: Windows / Unix > Reporter: Christophe Domas > Assignee: Brian Fox > Priority: Minor > Fix For: 2.0-alpha-5 > > Time Spent: 2 hours, 30 minutes > Remaining Estimate: 0 minutes > > Hi, > I'm trying to use the build-classpath to generate a unix-style classpath on a > windows laptop (associated with the assembly plugin). I saw that you are > using file.separator and path.separator to generate the classpath string but > I'm affraid of side effect by overriding them in a properties file. Could you > add a way to choose a style (windows|unix) or to override them in the plugin > configuration? > thanks -- 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