|
2 parameters (file.separator and path.separator) will be fine for me. Thanks a lot. Are the options named file.separator and path.separator or fileSeparator pathSeparator as documented at 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, <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>
I also tried <file.separator>/</file.separator> with no change. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
i think i'll just add a parameter to override the default so you can separate with any string needed.