summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2008-09-17 12:10:04 +0000
committerMarc Englund <marc.englund@itmill.com>2008-09-17 12:10:04 +0000
commit5b825fd912723ea2c028ca256adfaea2737df1df (patch)
tree4f1d06cd7fffa178cc43fa1a0b2f347eb8e5d5f7 /build
parent4263345a3519f767722550b1080e888b8c08599c (diff)
downloadvaadin-framework-5b825fd912723ea2c028ca256adfaea2737df1df.tar.gz
vaadin-framework-5b825fd912723ea2c028ca256adfaea2737df1df.zip
Added custom widgetset target stub.
svn changeset:5424/svn branch:trunk
Diffstat (limited to 'build')
-rw-r--r--build/build.xml34
1 files changed, 30 insertions, 4 deletions
diff --git a/build/build.xml b/build/build.xml
index c4fa315d5b..0d19007408 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -42,7 +42,7 @@
</target>
<target name="package-jar" depends="clean-all, init, libs" description="Create itmill-toolkit-x.y.z.jar file.">
- </target>
+ </target>
<target name="package-war" depends="clean-all, init, build, docs, internal-package-mac, internal-package-war">
</target>
@@ -151,9 +151,9 @@
<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" />
- <pathelement path="lib/portlet/portal-service.jar" />
- <pathelement path="lib/portlet/portlet.jar" />
+ <pathelement path="lib/portlet/portal-kernel.jar" />
+ <pathelement path="lib/portlet/portal-service.jar" />
+ <pathelement path="lib/portlet/portlet.jar" />
</path>
</target>
@@ -663,6 +663,28 @@
</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">
@@ -711,6 +733,10 @@
<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 -->