Skip to content

Commit 7f3385e

Browse files
committed
Jooby Run: don't clear restart/compile extensions
1 parent bdb7814 commit 7f3385e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

modules/jooby-run/src/main/java/io/jooby/run/JoobyRunOptions.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
public class JoobyRunOptions {
2020

2121
/** Default port. */
22-
public static final int DEFAULT_PORT = Integer.parseInt(System.getProperty("server.port", "8080"));
22+
public static final int DEFAULT_PORT = Integer
23+
.parseInt(System.getProperty("server.port", "8080"));
2324

2425
private String projectName;
2526

@@ -101,7 +102,9 @@ public List<String> getRestartExtensions() {
101102
* @param restartExtensions Restart extensions.
102103
*/
103104
public void setRestartExtensions(List<String> restartExtensions) {
104-
this.restartExtensions = restartExtensions;
105+
if (restartExtensions != null && !restartExtensions.isEmpty()) {
106+
this.restartExtensions = restartExtensions;
107+
}
105108
}
106109

107110
/**
@@ -120,7 +123,9 @@ public List<String> getCompileExtensions() {
120123
* @param compileExtensions Compile extensions.
121124
*/
122125
public void setCompileExtensions(List<String> compileExtensions) {
123-
this.compileExtensions = compileExtensions;
126+
if (compileExtensions != null && !compileExtensions.isEmpty()) {
127+
this.compileExtensions = compileExtensions;
128+
}
124129
}
125130

126131
/**

0 commit comments

Comments
 (0)