Fixes (include|exclude)JsInteropExports arguments handling in DevMode.
When launching CodeServer through DevMode (like in eclipse plugin)
includeJsInteropExports and excludeJsInteropExports are not recreated
correctly from DevMode options.
Bug: #9533
Bug-Link: https://github.com/gwtproject/gwt/issues/9533
Change-Id: I3138fae10658304e335aff2ffb0473b9bcdc9240
diff --git a/dev/core/src/com/google/gwt/dev/shell/SuperDevListener.java b/dev/core/src/com/google/gwt/dev/shell/SuperDevListener.java
index e824e8f..76cb583 100644
--- a/dev/core/src/com/google/gwt/dev/shell/SuperDevListener.java
+++ b/dev/core/src/com/google/gwt/dev/shell/SuperDevListener.java
@@ -170,9 +170,11 @@
}
for (String regex : options.getJsInteropExportFilter().getValues()) {
if (regex.startsWith("-")) {
- args.add("-excludeJsInteropExports " + regex.substring(1));
+ args.add("-excludeJsInteropExports");
+ args.add(regex.substring(1));
} else {
- args.add("-includeJsInteropExports " + regex);
+ args.add("-includeJsInteropExports");
+ args.add(regex);
}
}
if (!options.isIncrementalCompileEnabled()) {