diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2008-12-23 09:44:12 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2008-12-23 09:44:12 +0000 |
commit | 6719e10996d01802c6f01e006fb1aec75d2636dd (patch) | |
tree | a24c7232ace441537f74e9533d9764c4eab9f200 /build | |
parent | 76aedb1690ac753c2efd0a0682de35e892b2e218 (diff) | |
download | vaadin-framework-6719e10996d01802c6f01e006fb1aec75d2636dd.tar.gz vaadin-framework-6719e10996d01802c6f01e006fb1aec75d2636dd.zip |
Build-script for OOPHM version of the Toolkit
svn changeset:6344/svn branch:trunk
Diffstat (limited to 'build')
-rw-r--r-- | build/build.xml | 46 | ||||
-rw-r--r-- | build/package/oophm-readme.txt | 77 |
2 files changed, 122 insertions, 1 deletions
diff --git a/build/build.xml b/build/build.xml index 2af01b8806..dbc737f096 100644 --- a/build/build.xml +++ b/build/build.xml @@ -29,7 +29,7 @@ <!-- Call one of package-* targets unless you understand what you are doing --> - <target name="package-all" depends="clean-all, init, build, docs, internal-package-mac, internal-package-windows, internal-package-linux, internal-package-war" description="Build public packages for Windows, Linux and Mac platforms."> + <target name="package-all" depends="clean-all, init, build, docs, internal-package-mac, internal-package-windows, internal-package-linux, internal-package-oophm, internal-package-war" description="Build public packages for Windows, Linux and Mac platforms."> </target> <target name="package-mac" depends="clean-all, init, build, docs, internal-package-mac" description="Create public tar.gz package for Mac."> @@ -41,6 +41,9 @@ <target name="package-linux" depends="clean-all, init, build, docs, internal-package-linux" description="Create public tar.bz2 package for Linux."> </target> + <target name="package-oophm" depends="clean-all, init-oophm, build, docs, internal-package-oophm" description="Create public tar.gz package for OOPHM."> + </target> + <target name="package-jar" depends="clean-all, init, libs" description="Create itmill-toolkit-x.y.z.jar file."> </target> @@ -104,6 +107,9 @@ </if> </target> + <target name="init-oophm-platform"><property name="platform" value="oophm" /></target> + <target name="init-oophm" depends="init-oophm-platform,init"></target> + <!-- Initialization - - - - - - - - - - - - - - - - - - - - - - - - --> <target name="init" depends="init-platform"> @@ -199,6 +205,25 @@ </tar> </target> + <target name="internal-package-oophm"> + <var name="package-platform" value="oophm" /> + <echo>Creating package for ${package-platform} platform.</echo> + <var name="eclipse-launch-vmargs" value="-Xms256M -Xmx512M" /> + <antcall target="add-platform-specific-files" inheritAll="true" inheritRefs="true" /> + <tar destfile="${result-path}/${product-file}-${package-platform}-${version}.tar.gz" compression="gzip" longfile="gnu"> + <tarfileset prefix="${product-file}-${package-platform}-${version}" dir="${result-path}/${product-file}-${version}"> + <patternset> + <include name="**/*" /> + </patternset> + </tarfileset> + <tarfileset prefix="${product-file}-${package-platform}-${version}/gwt" dir="${gwt-dir}/${package-platform}"> + <patternset> + <include name="**/*" /> + </patternset> + </tarfileset> + </tar> + </target> + <target name="internal-package-mac"> <var name="package-platform" value="mac" /> <echo>Creating package for ${package-platform} platform.</echo> @@ -425,6 +450,21 @@ </then> </if> <if> + <equals arg1="${package-platform}" arg2="oophm" /> + <then> + <copy todir="${output-dir}"> + <fileset dir="build/package"> + <include name="start.sh" /> + </fileset> + </copy> + <chmod file="${output-dir}/start.sh" perm="ugo+x" /> + <exec executable="chmod" failonerror="false"> + <arg line="ugo+x" /> + <arg line="${output-dir}/start.sh" /> + </exec> + </then> + </if> + <if> <equals arg1="${package-platform}" arg2="mac" /> <then> <copy todir="${output-dir}"> @@ -609,6 +649,7 @@ <arg value="com.itmill.toolkit.terminal.gwt.DefaultWidgetSet" /> <arg value="-style" /> <arg value="OBF" /> + <jvmarg value="-Xss8M"/> <jvmarg value="-Djava.awt.headless=true"/> <classpath> <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> @@ -633,6 +674,7 @@ <arg value="com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet" /> <arg value="-style" /> <arg value="OBF" /> + <jvmarg value="-Xss8M"/> <jvmarg value="-Djava.awt.headless=true"/> <classpath> <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> @@ -655,6 +697,7 @@ <arg value="com.itmill.toolkit.demo.sampler.gwt.SamplerWidgetSet" /> <arg value="-style" /> <arg value="OBF" /> + <jvmarg value="-Xss8M"/> <jvmarg value="-Djava.awt.headless=true"/> <classpath> <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> @@ -675,6 +718,7 @@ <arg value="com.itmill.toolkit.demo.colorpicker.gwt.ColorPickerWidgetSet" /> <arg value="-style" /> <arg value="OBF" /> + <jvmarg value="-Xss8M"/> <jvmarg value="-Djava.awt.headless=true"/> <classpath> <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" /> diff --git a/build/package/oophm-readme.txt b/build/package/oophm-readme.txt new file mode 100644 index 0000000000..6ebc58da28 --- /dev/null +++ b/build/package/oophm-readme.txt @@ -0,0 +1,77 @@ +============================================================================== +IT Mill Toolkit <version></version> Readme +============================================================================== + +This is an experimental version of IT Mill Toolkit <version></version> built using +out of process hosted mode (OOPHM) branch of Google Web Toolkit. It uses different +version of GWT libraries and compiler than the official <version></version>, so please +use with caution. The benefits are that after you install browser plugins from +gwt/plugins, you should be able to enable hosted mode within real browsers by adding +?gwt.hosted=127.0.0.1:9997 parameter to the application url you are using. + +Please post any comments and questions about OOPHM version to IT Mill Toolkit forums. + +------------- +How to Start? +------------- + +Open a shell window, change to the installation directory, and execute "sh start.sh". It +will start a web application at port 8888 on the local host and opens a web browser window +to display the start page of IT Mill Toolkit Content Browser. + +The installation directory is a web application as itself and is directly importable to +Eclipse IDE by selecting "File / Import / Existing Projects into Workspace" from Eclipse +main menu. See the manual for detailed instructions. + +------------------------------------------ +What's Inside the IT Mill Toolkit Package? +------------------------------------------ + +You should start exploring IT Mill Toolkit through the provided Content Browser web +application within this package; see 'How to Start?' above. + +The WebContent directory contains the content available through the Content Browser: the +IT Mill Toolkit Library, demos, documentation, and other useful information to get started +with IT Mill Toolkit. + +Below is a list of most important locations and files: + +Start IT Mill Toolkit +- start exploring IT Mill Toolkit by double-clicking this icon + +COPYING +- license file + +WebContent/itmill-toolkit-<version></version>.jar +- IT Mill Toolkit Library containing Java source and compiled files + +WebContent/doc/manual.pdf +- IT Mill Toolkit Reference Manual in PDF format + +WebContent/doc/manual/index.html +- IT Mill Toolkit Reference Manual in HTML format + +WebContent/doc/api/index.html +- IT Mill Toolkit API Documentation as JavaDoc reference + +WebContent/WEB-INF/src +- Content Browser source code, compiled into WebContent/WEB-INF/classes + +WebContent/doc/example-source +- example source code in HTML format + +WebContent/demo +- files required by the demos + +IT Mill Toolkit Hosted Mode.launch +IT Mill Toolkit Web Mode.launch +- launch configurations for Eclipse workspace + +WebContent/doc/example-source/build-widgetset.xml +- example on how to build GWT widget sets for IT Mill Toolkit application + +WebContent/ITMILL +- widget sets and themes + +gwt +- Google Web Toolkit is required for building new widget sets |