summaryrefslogtreecommitdiffstats
path: root/client-compiler/src
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-12-13 15:08:10 +0200
committerHenri Sara <hesara@vaadin.com>2012-12-13 15:08:10 +0200
commit3419d848f90b919a1cb7633da2d228d41b9d6b82 (patch)
treef71f5d7ced9a302b4370cd5f267bb6b2864ff795 /client-compiler/src
parente75bf0f0cf223dd2b188cf0ece8aa9766938062f (diff)
downloadvaadin-framework-3419d848f90b919a1cb7633da2d228d41b9d6b82.tar.gz
vaadin-framework-3419d848f90b919a1cb7633da2d228d41b9d6b82.zip
Use new GWT Compiler in WidgetsetCompiler (#10511)
This change should be used together with related changes to the Eclipse plug-in which uses the class. Change-Id: I5419b6e7195982b17e599dbb102a8b1766c1d7e0
Diffstat (limited to 'client-compiler/src')
-rwxr-xr-xclient-compiler/src/com/vaadin/tools/WidgetsetCompiler.java25
1 files changed, 8 insertions, 17 deletions
diff --git a/client-compiler/src/com/vaadin/tools/WidgetsetCompiler.java b/client-compiler/src/com/vaadin/tools/WidgetsetCompiler.java
index 854efe54d6..2c18e61f12 100755
--- a/client-compiler/src/com/vaadin/tools/WidgetsetCompiler.java
+++ b/client-compiler/src/com/vaadin/tools/WidgetsetCompiler.java
@@ -15,33 +15,31 @@
*/
package com.vaadin.tools;
-import java.lang.reflect.Method;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.vaadin.server.widgetsetutils.WidgetSetBuilder;
/**
- * A wrapper for the GWT 1.6 compiler that runs the compiler in a new thread.
+ * A wrapper for the GWT compiler that runs the compiler in a new thread after
+ * updating the widgetset file.
*
- * This allows circumventing a J2SE 5.0 bug (6316197) that prevents setting the
- * stack size for the main thread. Thus, larger widgetsets can be compiled.
+ * This class originally existed to allow circumventing a J2SE 5.0 bug (6316197)
+ * that prevents setting the stack size for the main thread.
*
* This class takes the same command line arguments as the
- * com.google.gwt.dev.GWTCompiler class. The old and deprecated compiler is used
- * for compatibility with GWT 1.5.
+ * com.google.gwt.dev.Compiler class.
*
* A typical invocation would use e.g. the following arguments
*
- * "-out WebContent/VAADIN/widgetsets com.vaadin.DefaultWidgetSet"
+ * "-war WebContent/VAADIN/widgetsets com.vaadin.DefaultWidgetSet"
*
* In addition, larger memory usage settings for the VM should be used, e.g.
*
* "-Xms256M -Xmx512M -Xss8M"
*
* The source directory containing widgetset and related classes must be
- * included in the classpath, as well as the gwt-dev-[platform].jar and other
- * relevant JARs.
+ * included in the classpath, as well as other relevant JARs.
*
* @deprecated with Java 6, can use com.google.gwt.dev.Compiler directly (also
* in Eclipse plug-in etc.)
@@ -79,14 +77,7 @@ public class WidgetsetCompiler {
System.out.println("Done.");
System.out.println("Starting GWT compiler");
- System.setProperty("gwt.nowarn.legacy.tools", "true");
- System.setProperty("gwt.forceVersionCheckURL",
- "http://tools.vaadin.com/version/currentversion.xml");
- Class<?> compilerClass = Class
- .forName("com.google.gwt.dev.GWTCompiler");
- Method method = compilerClass.getDeclaredMethod("main",
- String[].class);
- method.invoke(null, new Object[] { args });
+ com.google.gwt.dev.Compiler.main(args);
} catch (Throwable thr) {
getLogger().log(Level.SEVERE,
"Widgetset compilation failed", thr);