diff options
author | Henri Sara <hesara@vaadin.com> | 2012-06-14 16:56:10 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-06-14 16:56:10 +0300 |
commit | 96b23eef54ab56b88ee9d8dd8e6f15a414c7ba11 (patch) | |
tree | 05c78d5c8198ac23f348923ae9ca4c4bd77838ae /build | |
parent | adcf03c1b5f05b38cda25819b732745c1a4859fc (diff) | |
download | vaadin-framework-96b23eef54ab56b88ee9d8dd8e6f15a414c7ba11.tar.gz vaadin-framework-96b23eef54ab56b88ee9d8dd8e6f15a414c7ba11.zip |
Integrate GWT build with Vaadin - first step.
Build vaadin.jar that contains the contents of gwt-user.jar, gwt-dev.jar
and gwt-codeserver.jar in addition to Vaadin itself.
The property gwt.root must be defined and point to a GWT trunk branch
check-out. The tools branch should be checked out in a directory next to
it.
Diffstat (limited to 'build')
-rw-r--r-- | build/GWT-VERSION.properties | 2 | ||||
-rw-r--r-- | build/build.xml | 74 | ||||
-rw-r--r-- | build/ivy/ivy.xml | 5 |
3 files changed, 72 insertions, 9 deletions
diff --git a/build/GWT-VERSION.properties b/build/GWT-VERSION.properties index 028ad8b4de..e5bb635e01 100644 --- a/build/GWT-VERSION.properties +++ b/build/GWT-VERSION.properties @@ -1,2 +1,2 @@ -gwt-version=2.4.0 +gwt-version=2.5.0 gwt-version-dependencies=validation-api-1.0.0.GA.jar, validation-api-1.0.0.GA-sources.jar diff --git a/build/build.xml b/build/build.xml index 97f7c1c274..9510cc50fb 100644 --- a/build/build.xml +++ b/build/build.xml @@ -34,16 +34,57 @@ <path id="additional.jar.path"> <fileset dir="build" includes="lib/**/*.jar" ></fileset> </path> + + <property name="gwt.build.dir" value="${gwt.root}/build"/> + <property name="gwt.tools.lib" value="${gwt.root}/../tools/lib"/> + + <property name="gwt.user.jar" value="${gwt.build.dir}/lib/gwt-user.jar"/> + <property name="gwt.dev.jar" value="${gwt.build.dir}/lib/gwt-dev.jar"/> + <property name="gwt.codeserver.jar" value="${gwt.build.dir}/lib/gwt-codeserver.jar"/> + + <property name="gwt.user.dir" value="${gwt.root}/user"/> + <property name="gwt.user.bin" value="${gwt.build.dir}/out/user/bin"/> + <path id="compile.classpath.server-side"> <path refid="additional.jar.path" /> + + <!-- GWT --> + <pathelement location="${gwt.user.jar}" /> + <pathelement location="${gwt.dev.jar}" /> + + <!-- GWT dependencies --> + <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> + <pathelement location="${gwt.tools.lib}/w3c/flute/flute-1.3-gg2.jar" /> + <path refid="ivy.compile.classpath.server-side" /> </path> <path id="compile.classpath.client-side"> - <path refid="additional.jar.path" /> - <path refid="ivy.compile.classpath.client-side" /> + <path refid="additional.jar.path" /> + + <!-- GWT user --> + <!-- + <pathelement path="${gwt.user.dir}/src" /> + <pathelement path="${gwt.user.dir}/super" /> + <pathelement path="${gwt.user.dir}/out/user/bin"/> + --> + <!-- GWT --> + <pathelement location="${gwt.user.jar}" /> + <pathelement location="${gwt.dev.jar}" /> + + <!-- GWT dependencies --> + <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> + <pathelement location="${gwt.tools.lib}/w3c/flute/flute-1.3-gg2.jar" /> + + <path refid="ivy.compile.classpath.client-side" /> </path> <path id="compile.classpath.server-side-tests"> <path refid="additional.jar.path" /> + + <!-- GWT --> + <pathelement location="${gwt.user.jar}" /> + <!-- needed at least for Apache Commons --> + <pathelement location="${gwt.dev.jar}" /> + <path refid="ivy.compile.classpath.server-side-tests" /> </path> </target> @@ -265,7 +306,7 @@ description="Build package required files, without packing them."> </target> - <target name="compile-server-side" depends="compile-core, webcontent"/> + <target name="compile-server-side" depends="compile-gwt, compile-core, webcontent"/> <!-- Copy and preprocess sources for packaging NOTE: Replaces <version></version> tags with build version tag for some "textual" files @@ -570,7 +611,7 @@ <!-- Compiles all widgetsets. --> <!-- This is called when building packages and when compiling all --> <!-- widgetsets, but not when compiling individual widgetsets. --> - <target name="compile-client-side" depends="compile-server-side, compile-tests"> + <target name="compile-client-side" depends="compile-gwt, compile-server-side, compile-tests"> <echo>Compiling widget sets in parallel.</echo> <parallel threadsperprocessor="1"> <antcall inheritrefs="true" target="compile-widgetset-default"/> @@ -600,6 +641,20 @@ <!-- Libraries and Tests --> <!-- ================================================================== --> + <target name="compile-gwt" depends="init"> + <!-- TODO Compile GWT in a directory defined by properties --> + <ant antfile="${gwt.root}/build.xml" target="user" dir="${gwt.root}" inheritall="false" inheritrefs="false"> + <property name="gwt.root" value="${gwt.root}"/> + </ant> + <ant antfile="${gwt.root}/build.xml" target="dev" dir="${gwt.root}" inheritall="false" inheritrefs="false"> + <property name="gwt.root" value="${gwt.root}"/> + </ant> + <!-- TODO unnecessary with latest trunk? --> + <ant antfile="${gwt.root}/dev/codeserver/build.xml" target="build" dir="${gwt.root}/dev/codeserver" inheritall="false" inheritrefs="false"> + <property name="gwt.root" value="${gwt.root}"/> + </ant> + </target> + <!-- Compile the Vaadin library JAR. --> <!-- Need only the default widgetset for this, but can't depend --> <!-- specifically on it, because dependence does not see compiled --> @@ -658,6 +713,17 @@ <include name="img/**" /> </patternset> </fileset> + + <!-- GWT --> + <fileset dir="${gwt.user.dir}/src" excludes="**/package.html" /> + <fileset dir="${gwt.user.dir}/super" excludes="**/package.html" /> + <fileset dir="${gwt.user.bin}" /> + + <zipfileset src="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> + <zipfileset src="${gwt.tools.lib}/w3c/flute/flute-1.3-gg2.jar" /> + + <zipfileset src="${gwt.dev.jar}" /> + <zipfileset src="${gwt.codeserver.jar}" /> </jar> <!-- Generate the Export-Package attribute in the manifest of the JAR --> diff --git a/build/ivy/ivy.xml b/build/ivy/ivy.xml index ffcf7b19c8..6b569d1248 100644 --- a/build/ivy/ivy.xml +++ b/build/ivy/ivy.xml @@ -19,11 +19,8 @@ <!-- Google App Engine --> <dependency org="com.google.appengine" name="appengine-api-1.0-sdk" rev="1.2.1" /> - <!-- GWT user with dependencies (validation-api) --> - <dependency org="com.google.gwt" name="gwt-user" rev="2.4.0" conf="cs.compile->master" /> + <!-- GWT dependencies (validation-api) --> <dependency org="javax.validation" name="validation-api" rev="1.0.0.GA" conf="cs.compile->master,sources" /> - <!-- GWT dev (incl. servlet-api 2.4 classes) --> - <dependency org="com.google.gwt" name="gwt-dev" rev="2.4.0" conf="cs.compile->master" /> <!-- Test frameworks & related --> <dependency org="junit" name="junit" rev="4.5" conf="ss.test.compile -> master"/> |