Compare commits
2 commits
dd213a8dde
...
4a5da76a62
Author | SHA1 | Date | |
---|---|---|---|
4a5da76a62 | |||
01f1777658 |
2 changed files with 21 additions and 3 deletions
|
@ -5,6 +5,9 @@ import rife.bld.Project;
|
||||||
import rife.bld.extension.JReleaserInitOperation;
|
import rife.bld.extension.JReleaserInitOperation;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.logging.ConsoleHandler;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import static rife.bld.dependencies.Repository.*;
|
import static rife.bld.dependencies.Repository.*;
|
||||||
import static rife.bld.dependencies.Scope.*;
|
import static rife.bld.dependencies.Scope.*;
|
||||||
|
@ -29,6 +32,16 @@ public class ExamplesBuild extends Project {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
// Enable detailed logging for the extensions
|
||||||
|
var level = Level.ALL;
|
||||||
|
var logger = Logger.getLogger("rife.bld.extension");
|
||||||
|
var consoleHandler = new ConsoleHandler();
|
||||||
|
|
||||||
|
consoleHandler.setLevel(level);
|
||||||
|
logger.addHandler(consoleHandler);
|
||||||
|
logger.setLevel(level);
|
||||||
|
logger.setUseParentHandlers(false);
|
||||||
|
|
||||||
new ExamplesBuild().start(args);
|
new ExamplesBuild().start(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -131,9 +131,10 @@ public abstract class AbstractJReleaserOperation<S extends AbstractJReleaserOper
|
||||||
if (project_ != null) {
|
if (project_ != null) {
|
||||||
args.add(javaTool());
|
args.add(javaTool());
|
||||||
args.add("-cp");
|
args.add("-cp");
|
||||||
args.add(String.format("%s:%s:%s:%s:%s", new File(project_.libTestDirectory(), "*"),
|
args.add(String.format("%s%s%s%s%s%s%s%s%s", new File(project_.libTestDirectory(), "*"),
|
||||||
new File(project_.libCompileDirectory(), "*"), new File(project_.libProvidedDirectory(), "*"),
|
File.pathSeparator, new File(project_.libCompileDirectory(), "*"), File.pathSeparator,
|
||||||
project_.buildMainDirectory(), project_.buildTestDirectory()));
|
new File(project_.libProvidedDirectory(), "*"), File.pathSeparator, project_.buildMainDirectory(),
|
||||||
|
File.pathSeparator, project_.buildTestDirectory()));
|
||||||
args.add("org.jreleaser.cli.Main");
|
args.add("org.jreleaser.cli.Main");
|
||||||
args.add(getCommand());
|
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;
|
return args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue