]> source.dussan.org Git - vaadin-framework.git/commitdiff
Build-script for OOPHM version of the Toolkit
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 23 Dec 2008 09:44:12 +0000 (09:44 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Tue, 23 Dec 2008 09:44:12 +0000 (09:44 +0000)
svn changeset:6344/svn branch:trunk

build/build.xml
build/package/oophm-readme.txt [new file with mode: 0644]

index 2af01b88061da7279bf5799ec56ed3c8425c42a9..dbc737f0968d9917915594c851a70167c94ff8e7 100644 (file)
@@ -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>
 
                </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">
 
                </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>
                                </exec>
                        </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>
                        <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" />
                        <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" />
                        <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" />
                        <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 (file)
index 0000000..6ebc58d
--- /dev/null
@@ -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