Set progressive compiling
This commit is contained in:
parent
6173639cdd
commit
75ccf1a0ed
1 changed files with 17 additions and 6 deletions
|
@ -52,6 +52,9 @@ import java.time.format.DateTimeFormatter;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.jar.Attributes;
|
||||
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.Scope.compile;
|
||||
|
@ -139,6 +142,15 @@ public class MobibotBuild extends Project {
|
|||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
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 MobibotBuild().start(args);
|
||||
}
|
||||
|
||||
|
@ -155,12 +167,11 @@ public class MobibotBuild extends Project {
|
|||
@Override
|
||||
public void compile() throws Exception {
|
||||
releaseInfo();
|
||||
var options = new CompileOptions().verbose(true);
|
||||
options.jvmOptions().enableNativeAccess(JvmOptions.ALL_UNNAMED);
|
||||
new CompileKotlinOperation()
|
||||
.compileOptions(options)
|
||||
.fromProject(this)
|
||||
.execute();
|
||||
var options = new CompileOptions().progressive(true).verbose(true);
|
||||
var op = new CompileKotlinOperation().compileOptions(options).fromProject(this);
|
||||
|
||||
op.jvmOptions().enableNativeAccess(JvmOptions.ALL_UNNAMED);
|
||||
op.execute();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue