Ticket #1694: build-widgetsets.xml

File build-widgetsets.xml, 2.1 kB (added by Joonas Lehtinen, 8 months ago)

Somewhat functional example of build.xml

Line 
1<?xml version="1.0"?>
2
3
4<project name="coverflow" basedir=".." default="compile-coverflowwidgetset">
5
6        <target name="configure">
7                <!-- which platform we are in, possible values are windows, linux and mac -->
8                <property name="gwt-platform" value="mac" />
9               
10                <!-- where platform specific GWT distribution is located -->
11                <property name="gwt-location" value="/Users/Shared/phoenix/Download/a/itmill-toolkit-mac_leopard-5.2.0rc5/gwt" />
12               
13                <!-- where Toolkit jar is located -->
14                <property name="toolkit-jar-location" value="/Users/Shared/phoenix/Download/a/itmill-toolkit-mac_leopard-5.2.0rc5/WebContent/itmill-toolkit-5.2.0rc5.jar" />
15               
16                <!-- where project client-side widgetset source files are located -->
17                <property name="client-side-src-location" value="src" />
18                       
19                <!-- where to generate compiled javascript and theme files -->
20                <property name="client-side-destination" value="WebContent/ITMILL/widgetsets" />
21        </target>
22
23       
24        <target name="init" depends="configure">
25
26                <echo>Configured for ${gwt-platform} platform.</echo>
27                <echo>Requirements for classpath:</echo>
28                <echo>  ${gwt-location}/gwt-dev-${gwt-platform}.jar</echo>
29                <echo>  ${gwt-location}/gwt-user.jar</echo>
30                <echo>  ${toolkit-jar-location}</echo>
31                <echo>  ${client-side-src-location}</echo>
32                <echo>Output will be written into ${client-side-destination}</echo>
33                <echo>Note, if you have created your own widgetset, please modify target compile-my-widgetset first.</echo>
34
35                <!-- Construct classpath -->
36                <path id="compile.classpath">
37                        <pathelement path="${client-side-src-location}" />
38                        <pathelement path="${toolkit-jar-location}" />
39                        <pathelement path="${gwt-location}/gwt-user.jar" />
40                        <pathelement path="${gwt-location}/gwt-dev-${gwt-platform}.jar" />
41                </path>
42
43        </target>
44       
45       
46        <target name="compile-coverflowwidgetset" depends="init">
47                <java classname="com.google.gwt.dev.GWTCompiler" failonerror="yes" fork="yes" maxmemory="128m">
48                        <arg value="-out" />
49                        <arg value="${client-side-destination}" />
50                        <arg value="com.itmill.incubator.ui.coverflow.gwt.CoverflowWidgetSet" />
51                        <classpath>
52                                <path refid="compile.classpath"/>
53                        </classpath>
54                </java>
55        </target>
56       
57
58</project>