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.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.jar.Attributes;
|
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.Repository.*;
|
||||||
import static rife.bld.dependencies.Scope.compile;
|
import static rife.bld.dependencies.Scope.compile;
|
||||||
|
@ -139,6 +142,15 @@ public class MobibotBuild extends Project {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
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);
|
new MobibotBuild().start(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,12 +167,11 @@ public class MobibotBuild extends Project {
|
||||||
@Override
|
@Override
|
||||||
public void compile() throws Exception {
|
public void compile() throws Exception {
|
||||||
releaseInfo();
|
releaseInfo();
|
||||||
var options = new CompileOptions().verbose(true);
|
var options = new CompileOptions().progressive(true).verbose(true);
|
||||||
options.jvmOptions().enableNativeAccess(JvmOptions.ALL_UNNAMED);
|
var op = new CompileKotlinOperation().compileOptions(options).fromProject(this);
|
||||||
new CompileKotlinOperation()
|
|
||||||
.compileOptions(options)
|
op.jvmOptions().enableNativeAccess(JvmOptions.ALL_UNNAMED);
|
||||||
.fromProject(this)
|
op.execute();
|
||||||
.execute();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue