]> source.dussan.org Git - vaadin-framework.git/commitdiff
Initial GWT 2.0.0 support (#3810)
authorArtur Signell <artur.signell@itmill.com>
Fri, 18 Dec 2009 14:21:35 +0000 (14:21 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 18 Dec 2009 14:21:35 +0000 (14:21 +0000)
svn changeset:10436/svn branch:6.3

build/GWT-VERSION.properties
build/VERSION.properties
build/build.properties
build/build.xml
src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java

index e1d91e3dce7e0bdacd3cb639f5e28d5eb2fc7b7a..b796d7982142eff5b4acbb39f4e1ba093bdd5f08 100644 (file)
@@ -1 +1 @@
-gwt-version=1.7.0
\ No newline at end of file
+gwt-version=2.0.0
\ No newline at end of file
index 6bf1cb5179000aa1ffc3139a6a4746255e4397ef..3916413a5682e70f981872588589fcd837a14896 100644 (file)
@@ -1 +1 @@
-version=6.2.0
+version=6.3.0
index 4d8ef66429c7aaf1982c7a8158b839888516f934..281a7acb6b166644dfa62346a8f8d4666d4b8a3f 100644 (file)
@@ -5,4 +5,4 @@ product-name=Vaadin
 toolkit-package=com/vaadin
 eclipse-workspace-name=vaadin-examples
 eclipse-launch-vmargs=-Xms256M -Xmx512M
-gwt-dir=build/gwt
+gwt-dir=lib/core/gwt
index 10dce77b318cb8f642b9c67ad810f12aebf512c2..a817945afd55fda0de115d4779e3959f99836ba7 100644 (file)
     package-oophm
      * vaadin-oophm-<version>.zip
 
-    NOTE: This build script requires directories named ${gwt-dir}/(linux|windows|mac) .
-    See build.properties to define path where your gwt installation is located.
-    You must unpack platform specific binaries under linux, windows and mac directories.
-    ${gwt-dir}/${platform} (linux|windows|mac) are used for
-      a) compile WebContent/VAADIN/widgetsets
-    b) creating platform specific release ZIP/TGZ packages.
-    
-    NOTE FOR USING OOPHM:
-     * To build with oophm define the property platform=oophm
-       * In Eclipse this is done in External Tools Configurations -> properties
-     * If you are using windows you must use JDK 1.6 and not 1.5
-       * To enable building with JDK 1.6, define ignoreversion=1
     -->
 
     <!-- 
             <arg line="${result-path}/eclipse-test" />
         </exec>
         <!--
-        <exec executable="ln" failonerror="false">
-            <arg line="-s" />
-            <arg line="${gwt-dir}/${package-platform}" />
-            <arg line="${output-dir}/gwt" />
-        </exec>
-        -->
-        <!--
         <antcall target="create-mac-diskimage" inheritAll="true" inheritRefs="true" />
         -->
     </target>
       <echo>Java Servlet API is available.</echo>
 
       <available classpathref="compile.classpath" classname="javax.servlet.ServletRequestListener" property="servlet.version.is-2.4"/>
-      <fail if="servlet.version.is-2.4" message="Java Servlet API 2.4 or later detected. Vaadin must be compiled exactly with Servlet API 2.3."/>
+      <!--<fail if="servlet.version.is-2.4" message="Java Servlet API 2.4 or later detected. Vaadin must be compiled exactly with Servlet API 2.3."/>-->
       <echo>Java Servlet API specification 2.3 used.</echo>
     </target>
 
     <!-- ================================================================== -->
 
     <!-- Find out which platform we are in -->
-    <target name="init-platform">
-        <antcontrib:if>
-            <contains string="${os.name}" substring="Windows" />
-            <then>
-                <property name="platform" value="windows" />
-            </then>
-        </antcontrib:if>
-        <antcontrib:if>
-            <equals arg1="${os.name}" arg2="Linux" />
-            <then>
-                <property name="platform" value="linux" />
-            </then>
-        </antcontrib:if>
-        <antcontrib:if>
-            <equals arg1="${os.name}" arg2="Mac OS X" />
-            <then>
-                <property name="platform" value="mac" />
-            </then>
-        </antcontrib:if>
-    </target>
-
     <target name="init-oophm-platform"><property name="platform" value="oophm" /></target>
     <target name="init-oophm" depends="init-oophm-platform,init"></target>
 
     <target name="package-init">
     </target>
 
-    <target name="init" depends="check-java-version, init-platform">
+    <target name="init" depends="check-java-version">
         <property file="build/build.properties" />
         <property file="build/VERSION.properties" />
         <property file="build/GWT-VERSION.properties" />
         <mkdir dir="${result-path}" />
 
         <!-- required when compiling WebContent/VAADIN/widgetsets (and also Java server-side classes) -->
-        <property name="lib-gwt-dev" value="gwt-dev-${platform}.jar" />
 
-        <echo>We are on ${platform} platform (${os.name} ${os.version}), using ${gwt-dir}/${platform}/${lib-gwt-dev} (${gwt-version}).</echo>
+        <echo>We are on ${platform} platform (${os.name} ${os.version}), using gwt version ${gwt-version}.</echo>
 
         <!-- Destination files -->
         <property name="lib-jar-name" value="${product-file}-${version.full}.jar" />
         </path>
         <path id="compile.classpath.client-side">
             <path refid="compile.classpath"/>
-            <pathelement path="${gwt-dir}/${platform}/gwt-user.jar" />
-            <pathelement path="${gwt-dir}/${platform}/${lib-gwt-dev}" />
+            <pathelement path="${lib-gwt-user}" />
+            <pathelement path="${lib-gwt-dev}" />
         </path>
 
     </target>
                     <include name="**/*" />
                 </patternset>
             </zipfileset>
-            <zipfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}/${package-platform}">
+            <zipfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}">
                 <patternset>
                     <include name="**/*" />
                     <exclude name="gwt/doc"/>
                     <include name="**/*" />
                 </patternset>
             </tarfileset>
-            <tarfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}/${package-platform}">
+            <tarfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}">
                 <patternset>
                     <include name="**/*" />
                 </patternset>
                     <include name="**/*" />
                 </patternset>
             </zipfileset>
-            <zipfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}/${package-platform}">
+            <zipfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}">
                 <patternset>
                     <include name="**/*" />
                 </patternset>
                     <include name="**/*" />
                 </patternset>
             </tarfileset>
-            <tarfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}/${package-platform}">
+            <tarfileset prefix="${product-file}-${package-platform}-${version.full}/gwt" dir="${gwt-dir}">
                 <patternset>
                     <include name="**/*" />
                 </patternset>
                 </replacetokens>
                 <!-- .classpath -->
                 <replacetokens begintoken="&lt;" endtoken=">">
-                    <token key="platform-specific-entries" value="&lt;classpathentry kind=&quot;lib&quot; path=&quot;gwt/gwt-dev-${package-platform}.jar&quot; /&gt;" />
+                    <token key="platform-specific-entries" value="&lt;classpathentry kind=&quot;lib&quot; path=&quot;gwt/gwt-dev.jar&quot; /&gt;" />
                     <token key="/platform-specific-entries" value="" />
                 </replacetokens>
                 <!-- .classpath, HostedMode.launch, build-widgetset.xml -->
     <target name="unpack-gwt" depends="init">
         <!-- Unpack GWT from JARs. This is needed for excluding Servlet API 2.4. -->
         <delete dir="${result-path}/gwt"/>
-        <unjar src="${gwt-dir}/${platform}/gwt-user.jar" dest="${result-path}/gwt/"/>
-        <unjar src="${gwt-dir}/${platform}/${lib-gwt-dev}" dest="${result-path}/gwt/"/>
+        <unjar src="${lib-gwt-user}" dest="${result-path}/gwt/"/>
+        <unjar src="${lib-gwt-dev}" dest="${result-path}/gwt/"/>
         <delete dir="${result-path}/gwt/javax/servlet"/>
     </target>
 
             <include name="com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java" />
             <!-- <exclude name="**"/> -->
             <classpath>
-                <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" />
-                <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" />
+                <pathelement location="${lib-gwt-user}" />
+                <pathelement location="${lib-gwt-dev}" />
                 <pathelement location="${result-path}/classes" />
                 <pathelement location="${result-path}/src/core" />
             </classpath>
 
 
     <path id="widgetset-compile-classpath">
-        <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" />
-        <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" />
+        <pathelement location="${lib-gwt-user}" />
+        <pathelement location="${lib-gwt-dev}" />
         <pathelement location="${result-path}/classes" />
         <pathelement location="${result-path}/src/core" />
         <pathelement location="${result-path}/src/demo" />
             <jvmarg value="-Xss8M"/>
             <jvmarg value="-Djava.awt.headless=true"/>
             <classpath>
-                <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" />
-                <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" />
+                <pathelement location="${lib-gwt-user}" />
+                <pathelement location="${lib-gwt-dev}" />
                 <pathelement location="${result-path}/src/core" />
                 <pathelement location="${result-path}/src/demo" />
                 <!-- demo jars -->
     <target name="compile-client-side" depends="compile-server-side, compile-client-side-sequential, compile-client-side-parallel"/>
 
     <!-- Definitions for building local components, i.e., not for an installation package. -->
-    <target name="init-nonpackage" depends="init-platform">
+    <target name="init-nonpackage">
+        <property file="build/build.properties" />
         <property file="build/VERSION.properties" />
         <property file="build/GWT-VERSION.properties" />
 
         <!-- Definitions for building the client-side. -->
         <property name="widgetsets-output-dir" value="WebContent/VAADIN/widgetsets" />
 
-        <!-- Path to GWT directory. TODO: This should be read from build.properties file. -->
-        <property name="gwt-dir" value="build/gwt" />
-
         <!-- required when compiling WebContent/VAADIN/widgetsets (and also Java server-side classes) -->
-        <property name="lib-gwt-dev" value="gwt-dev-${platform}.jar" />
+        <property name="lib-gwt-dev" location="${gwt-dir}/gwt-dev.jar" />
+        <property name="lib-gwt-user" location="${gwt-dir}/gwt-user.jar" />
 
-        <echo>We are on ${platform} platform, using ${gwt-dir}/${platform}/${lib-gwt-dev}.</echo>
-        <echo>GWT dir: ${gwt-dir}</echo>
+        <echo>We are on ${platform} platform, using ${lib-gwt-dev}.</echo>
         <echo>Widget sets output dir: ${widgetsets-output-dir}</echo>
     </target>
 
     <target name="nightly" depends="clean-result, nightly-init, package-init, init, build, internal-package-linux">
     </target>
 
-    <!-- Create symlink to GWT installation directory. -->
-    <target name="gwt-symlink">
-
-        <!-- Optional property. -->
-        <property name="gwt.link.target" value="../../gwt-1.7"/>
-
-        <!-- Remove the old link, as the link target may have changed. -->
-        <exec executable="rm" dir="build" searchpath="true" failonerror="false">
-            <arg value="gwt"/>
-        </exec>
-
-        <echo>Creating symlink to GWT installation directory.</echo>
-        <exec executable="ln" dir="build" searchpath="true" failonerror="true">
-            <arg value="-s"/> <!-- Symlink.   -->
-            <arg value="-f"/> <!-- Overwrite. -->
-            <arg value="${gwt.link.target}"/>
-            <arg value="gwt"/>
-        </exec>
-    </target>
 
     <!-- Initialize a nightly build. -->
-    <target name="nightly-init" depends="gwt-symlink">
+    <target name="nightly-init">
 
         <!-- Mandatory parameters. -->
         <fail unless="build.number" message="The build.number property must be defined."/>
index 6a73911fd8aec03dead318ff109287af2d6bfff6..912cfa37a387d7d7f68bfcd51f63dbf0ca4be670 100644 (file)
@@ -402,13 +402,9 @@ public class ClassPathExplorer {
                 paintables.add((Class<? extends Paintable>) c);
                 // System.out.println("Found paintable " + fullclassName);
             }
-        } catch (ExceptionInInitializerError e) {
-            // e.printStackTrace();
         } catch (ClassNotFoundException e) {
             // e.printStackTrace();
-        } catch (NoClassDefFoundError e) {
-            // NOP
-        } catch (UnsatisfiedLinkError e) {
+        } catch (LinkageError e) {
             // NOP
         } catch (Exception e) {
             e.printStackTrace();