blob: 8cead01a798e0f6e05b343b6238fbaf649fbca74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
<?xml version="1.0"?>
<project name="vaadin-client-compiler" basedir="." default="publish-local" xmlns:ivy="antlib:org.apache.ivy.ant">
<description>
Compiled (JS+HTML) version of client side
</description>
<include file="../common.xml" as="common" />
<include file="../build.xml" as="vaadin" />
<include file="../gwt-files.xml" as="gwtfiles" />
<!-- global properties -->
<property name="module.name" value="vaadin-client-compiled" />
<property name="result.dir" value="result" />
<target name="default-widgetset">
<antcall target="compile-module">
<param name="module" value="com.vaadin.DefaultWidgetSet" />
</antcall>
</target>
<target name="compile-module">
<fail unless="module" message="You must give the module to compile in the 'module' parameter" />
<property name="result.dir" location="result" />
<property name="style" value="OBF" />
<property name="localWorkers" value="2" />
<property name="extraParams" value="" />
<property name="module.output.dir" location="${result.dir}/VAADIN/widgetsets" />
<ivy:resolve resolveid="common" conf="compile-module" />
<ivy:cachepath pathid="classpath.compile.widgetset" conf="compile-module" />
<echo>Compiling ${module} to ${module.output.dir}</echo>
<mkdir dir="${module.output.dir}" />
<!-- Disabled to reduce JAR size: precompile the widgetset to a .gwtar file -->
<!--
<java classname="com.google.gwt.dev.CompileModule" classpathref="compile.classpath.widgetset" failonerror="yes" fork="yes" maxmemory="512m">
<arg value="-out" />
<arg value="${result-precompiled-widgetsets}" />
<arg value="-strict" />
<arg value="${widgetset}" />
<jvmarg value="-Xss8M"/>
<jvmarg value="-XX:MaxPermSize=256M"/>
<jvmarg value="-Djava.awt.headless=true"/>
</java>
-->
<!-- compile the widgetset -->
<java classname="com.google.gwt.dev.Compiler" classpathref="classpath.compile.widgetset" failonerror="yes" fork="yes" maxmemory="512m">
<arg value="-war" />
<arg value="${module.output.dir}" />
<arg value="-style" />
<arg value="${style}" />
<arg value="-localWorkers" />
<arg value="${localWorkers}" />
<arg value="-strict" />
<arg line="${extraParams}" />
<arg value="${module}" />
<sysproperty key="vFailIfNotSerializable" value="true" />
<jvmarg value="-Xss8M" />
<jvmarg value="-XX:MaxPermSize=256M" />
<jvmarg value="-Djava.awt.headless=true" />
</java>
<!--<antcall target="remove-gwt-tmp" />-->
<echo>Compiled ${module}</echo>
</target>
<target name="jar" depends="default-widgetset">
<antcall target="common.pom.xml">
</antcall>
<property name="result.jar" location="${result.dir}/lib/${module.name}-${vaadin.version}.jar" />
<jar file="${result.jar}" compress="true">
<fileset dir="${result.dir}">
<include name="VAADIN/widgetsets/**" />
<include name="pom.xml" />
<exclude name="VAADIN/widgetsets/WEB-INF"/>
</fileset>
<fileset refid="common.files.for.all.jars" />
</jar>
</target>
<target name="publish-local" depends="jar">
<antcall target="common.publish-local">
<param name="conf" value="build" />
</antcall>
</ivy:publish>
-->
</target>
<target name="clean">
<antcall target="common.clean" />
</target>
<target name="tests">
<!--<antcall target="common.tests.run" />-->
<echo>WHAT? No tests for ${module.name}!</echo>
</target>
</project>
|