Skip to content

Commit

Permalink
[lang] Fixing classpath definition into the batch compiler.
Browse files Browse the repository at this point in the history
The batch compiler had improper definition of the classpath when a
string representation of it is provided to the batch compiler: the path
separator character (':' on unix, ';' on windows) is not used for
spliting the given path.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed May 7, 2019
1 parent ab9e3b5 commit 6592332
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -699,7 +699,7 @@ public void setBootClassPath(String bootClasspath) {
this.bootClasspath = null;
} else {
this.bootClasspath = new ArrayList<>();
for (final String path : Strings.split(bootClasspath, Pattern.quote(File.pathSeparator))) {
for (final String path : Strings.split(bootClasspath, File.pathSeparator)) {
this.bootClasspath.add(normalizeFile(path));
}
}
Expand Down Expand Up @@ -746,7 +746,7 @@ public List<File> getBootClassPath() {
*/
public void setClassPath(String classpath) {
this.classpath = new ArrayList<>();
for (final String path : Strings.split(classpath, Pattern.quote(File.pathSeparator))) {
for (final String path : Strings.split(classpath, File.pathSeparator)) {
this.classpath.add(normalizeFile(path));
}
}
Expand Down Expand Up @@ -1118,7 +1118,7 @@ public void setGenerateSerialNumberFields(final boolean generateFields) {
*/
public void setSourcePath(String sourcePath) {
this.sourcePath = new ArrayList<>();
for (final String path : Strings.split(sourcePath, Pattern.quote(File.pathSeparator))) {
for (final String path : Strings.split(sourcePath, File.pathSeparator)) {
this.sourcePath.add(normalizeFile(path));
}
}
Expand Down

0 comments on commit 6592332

Please sign in to comment.