Skip to content

Commit

Permalink
Fixed the app JAR configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed May 18, 2016
1 parent 2a26016 commit f34023b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions rapidoid-commons/src/main/java/org/rapidoid/config/Conf.java
Expand Up @@ -74,11 +74,18 @@ public static synchronized void args(String... args) {

configureProfiles();

applyConfig();
}

private static void applyConfig() {
String appJar = APP.entry("jar").str().getOrNull();
if (U.notEmpty(appJar)) {
ClasspathUtil.appJar(appJar);
}

if (Env.dev()) {
Log.setStyled(true);
}

ROOT.args(args);
}

private static void configureProfiles() {
Expand Down Expand Up @@ -164,12 +171,7 @@ public static void reload() {

ROOT.args(args);

String appJar = APP.entry("jar").str().getOrNull();
if (U.notEmpty(appJar)) {
ClasspathUtil.appJar(appJar);
}

Log.setStyled(Env.dev());
applyConfig();
}

private static void autoRefresh(Config... configs) {
Expand Down

0 comments on commit f34023b

Please sign in to comment.