fix: Use system specific file path separator
This commit is contained in:
parent
dd213a8dde
commit
01f1777658
1 changed files with 8 additions and 3 deletions
|
@ -131,9 +131,10 @@ public abstract class AbstractJReleaserOperation<S extends AbstractJReleaserOper
|
|||
if (project_ != null) {
|
||||
args.add(javaTool());
|
||||
args.add("-cp");
|
||||
args.add(String.format("%s:%s:%s:%s:%s", new File(project_.libTestDirectory(), "*"),
|
||||
new File(project_.libCompileDirectory(), "*"), new File(project_.libProvidedDirectory(), "*"),
|
||||
project_.buildMainDirectory(), project_.buildTestDirectory()));
|
||||
args.add(String.format("%s%s%s%s%s%s%s%s%s", new File(project_.libTestDirectory(), "*"),
|
||||
File.pathSeparator, new File(project_.libCompileDirectory(), "*"), File.pathSeparator,
|
||||
new File(project_.libProvidedDirectory(), "*"), File.pathSeparator, project_.buildMainDirectory(),
|
||||
File.pathSeparator, project_.buildTestDirectory()));
|
||||
args.add("org.jreleaser.cli.Main");
|
||||
args.add(getCommand());
|
||||
|
||||
|
@ -146,6 +147,10 @@ public abstract class AbstractJReleaserOperation<S extends AbstractJReleaserOper
|
|||
});
|
||||
}
|
||||
|
||||
if (LOGGER.isLoggable(Level.FINE)) {
|
||||
LOGGER.fine(String.join(" ", args));
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue