Jooby Run: don't clear restart/compile extensions
@@ -19,7 +19,8 @@ import java.util.List;
public class JoobyRunOptions {
/** Default port. */
- public static final int DEFAULT_PORT = Integer.parseInt(System.getProperty("server.port", "8080"));
+ public static final int DEFAULT_PORT = Integer
+ .parseInt(System.getProperty("server.port", "8080"));
private String projectName;
@@ -101,8 +102,10 @@ public class JoobyRunOptions {
* @param restartExtensions Restart extensions.
*/
public void setRestartExtensions(List<String> restartExtensions) {
+ if (restartExtensions != null && !restartExtensions.isEmpty()) {
this.restartExtensions = restartExtensions;
}
+ }
/**
* List of file extensions that trigger a compilation request. Compilation is done via Maven or
@@ -120,8 +123,10 @@ public class JoobyRunOptions {
* @param compileExtensions Compile extensions.
*/
public void setCompileExtensions(List<String> compileExtensions) {
+ if (compileExtensions != null && !compileExtensions.isEmpty()) {
this.compileExtensions = compileExtensions;
}
+ }
/**
* Test if the given path matches a compile extension.
