Fixed a bug where compiling from hosted mode would fail to refresh module state from what had already occurred in hosted mode.
git-svn-id: https://google-web-toolkit.googlecode.com/svn/releases/1.6@4502 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/Compiler.java b/dev/core/src/com/google/gwt/dev/Compiler.java
index ca40824..00c9f23 100644
--- a/dev/core/src/com/google/gwt/dev/Compiler.java
+++ b/dev/core/src/com/google/gwt/dev/Compiler.java
@@ -140,7 +140,8 @@
}
for (String moduleName : options.getModuleNames()) {
- ModuleDef module = ModuleDefLoader.loadFromClassPath(logger, moduleName);
+ ModuleDef module = ModuleDefLoader.loadFromClassPath(logger,
+ moduleName, true);
File compilerWorkDir = options.getCompilerWorkDir(moduleName);
if (options.isValidateOnly()) {
diff --git a/dev/core/src/com/google/gwt/dev/GWTCompiler.java b/dev/core/src/com/google/gwt/dev/GWTCompiler.java
index b6e2646..156f2b9 100644
--- a/dev/core/src/com/google/gwt/dev/GWTCompiler.java
+++ b/dev/core/src/com/google/gwt/dev/GWTCompiler.java
@@ -132,7 +132,7 @@
ModuleDef[] modules = new ModuleDef[options.getModuleNames().size()];
int i = 0;
for (String moduleName : options.getModuleNames()) {
- modules[i++] = ModuleDefLoader.loadFromClassPath(logger, moduleName);
+ modules[i++] = ModuleDefLoader.loadFromClassPath(logger, moduleName, true);
}
return run(logger, modules);
}