]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added custom widgetset target stub.
authorMarc Englund <marc.englund@itmill.com>
Wed, 17 Sep 2008 12:10:04 +0000 (12:10 +0000)
committerMarc Englund <marc.englund@itmill.com>
Wed, 17 Sep 2008 12:10:04 +0000 (12:10 +0000)
svn changeset:5424/svn branch:trunk

build/build.xml

index c4fa315d5b115357cedb74dc2d9feda25283a36c..0d19007408cb18d7ea6308bdb77046a79fc58256 100644 (file)
@@ -42,7 +42,7 @@
        </target>
 
        <target name="package-jar" depends="clean-all, init, libs" description="Create itmill-toolkit-x.y.z.jar file.">
-       </target>\r
+       </target>
 
        <target name="package-war" depends="clean-all, init, build, docs, internal-package-mac, internal-package-war">
        </target>
                        <pathelement path="lib/jetty/jetty-6.1.7.jar" />
                        <pathelement path="lib/jetty/jetty-util-6.1.7.jar" />
                        <pathelement path="lib/jetty/servlet-api-2.5-6.1.7.jar" />
-                       <pathelement path="lib/portlet/portal-kernel.jar" />\r
-                       <pathelement path="lib/portlet/portal-service.jar" />\r
-                       <pathelement path="lib/portlet/portlet.jar" />\r
+                       <pathelement path="lib/portlet/portal-kernel.jar" />
+                       <pathelement path="lib/portlet/portal-service.jar" />
+                       <pathelement path="lib/portlet/portlet.jar" />
                </path>
 
        </target>
                </java>
                <echo>Compiled ColorPickerWidgetSet</echo>
        </target>
+       
+       <!-- NOTE: use this template to compile your own widgetset -->
+       <target name="compile-my-widgetset">
+               <fail message="Please open build-widgetset.xml and update your widgetset's package name to enable this target" />
+               <echo>Custom widgetset</echo>
+               <java classname="com.google.gwt.dev.GWTCompiler" failonerror="yes" fork="yes" maxmemory="512m">
+                       <arg value="-out" />
+                       <arg value="${output-dir}/WebContent/ITMILL/widgetsets" />
+                       <!-- NOTE: Update line below and tell package name to your own widgetset -->
+                       <arg value="com.myexample.gwt.MyWidgetSet" />
+                       <arg value="-style" />
+                       <arg value="OBF" />
+                       <classpath>
+                               <pathelement location="${gwt-dir}/${platform}/gwt-user.jar" />
+                               <pathelement location="${gwt-dir}/${platform}/${lib-gwt-dev}" />
+                               <pathelement location="${result-path}/src" />
+                               <!-- demo widgetset sources -->
+                               <pathelement path="${output-dir}/WebContent/WEB-INF/src" />
+                       </classpath>
+               </java>
+               <echo>Compiled custom widgetset</echo>
+       </target>
 
        <!-- Builds the client-side engine, i.e., the widgetsets in parallel. -->
        <target name="compile-client-side">
        <target name="widgetset-colorpicker" depends="init-nonpackage, compile-widgetset-colorpicker">
        </target>
 
+       <!-- Builds the custom widgetset locally, i.e., not for an installation package. -->
+       <target name="widgetset-my-widgetset" depends="init-nonpackage, compile-my-widgetset">
+       </target>
+
        <target name="libs" depends="compile-java, webcontent, compile-client-side">
                <echo>Creating libs (server-side) ${lib-jar-name}</echo>
                <!-- Create Toolkit JAR -->