blob: a437fd194096c39290b8b2641c5b2413c9b14a87 (
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
<?xml version="1.0"?>
<project name="vaadin-widgets" basedir="." default="publish-local"
xmlns:ivy="antlib:org.apache.ivy.ant">
<description>
Widgets package for using Vaadin widgets with GWT 2.7+
</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-widgets" />
<property name="module.symbolic" value="com.vaadin.widgets" />
<property name="result.dir" value="result" />
<property name="result.src" value="${result.dir}/src" />
<property name="result.deps" value="${result.dir}/deps" />
<path id="classpath.compile.custom">
<fileset file="${gwt.user.jar}" />
<fileset file="${gwt.dev.jar}" />
</path>
<path id="classpath.test.custom" />
<union id="jar.includes">
</union>
<target name="dependencies">
<antcall target="common.dependencies" />
</target>
<target name="copysrc" depends="dependencies">
<delete dir="${result.deps}" />
<ivy:resolve transitive="false" type="jar"
conf="build-provided" />
<ivy:cachepath pathid="vaadin.jars" />
<unjar dest="${result.deps}">
<path refid="vaadin.jars" />
</unjar>
<copy todir="${result.src}">
<fileset dir="src" />
<fileset dir="${result.deps}">
<include name="com/vaadin/*.gwt.xml" />
<include name="com/vaadin/client/BrowserInfo.java" />
<include name="com/vaadin/client/ComputedStyle.java" />
<include name="com/vaadin/client/DeferredWorker.java" />
<include name="com/vaadin/client/Profiler.java" />
<include name="com/vaadin/client/StyleConstants.java" />
<include name="com/vaadin/client/WidgetUtil.java" />
<include name="com/vaadin/client/ui/FocusUtil.java" />
<include name="com/vaadin/client/data/**/*.java" />
<include name="com/vaadin/client/widget/**/*.java" />
<include name="com/vaadin/client/Focusable.java" />
<include name="com/vaadin/client/widgets/*.java" />
<include name="com/vaadin/client/renderers/*.java" />
<include name="com/vaadin/client/ui/SubPartAware.java" />
<include name="com/vaadin/client/ui/VProgressBar.java" />
<include name="com/vaadin/client/ui/dd/DragAndDropHandler.java" />
<include name="com/vaadin/client/VSchedulerImpl.java" />
<include name="com/vaadin/shared/ui/grid/*.java" />
<include name="com/vaadin/shared/ui/grid/**/*.java" />
<include name="com/vaadin/shared/util/SharedUtil.java" />
<include name="com/vaadin/shared/VBrowserDetails.java" />
<include name="com/vaadin/shared/data/sort/SortDirection.java" />
<include name="com/vaadin/sass/linker/*.java" />
<exclude name="com/vaadin/shared/**/*Rpc.java" />
<exclude name="com/vaadin/shared/**/*State.java" />
</fileset>
</copy>
<mkdir dir="${result.src}/com/vaadin/themes" />
<copy todir="${result.src}/com/vaadin/themes/valo">
<fileset dir="${result.deps}/VAADIN/themes/valo" />
</copy>
<copy todir="${result.src}/com/vaadin/themes/base">
<fileset dir="${result.deps}/VAADIN/themes/base" />
</copy>
</target>
<target name="compile" description="Compiles the module"
depends="dependencies,copysrc">
<property name="classes" location="${result.dir}/classes" />
<mkdir dir="${classes}" />
<javac destdir="${classes}" source="${vaadin.java.version}"
target="${vaadin.java.version}" debug="true" encoding="UTF-8"
includeantruntime="false">
<src path="${result.src}" />
<classpath refid="classpath.compile.custom" />
<classpath refid="vaadin.jars" />
</javac>
</target>
<target name="jar" depends="compile">
<property name="jar.file"
location="${result.dir}/lib/${module.name}-${vaadin.version}.jar" />
<antcall target="common.jar">
<param name="src" value="${result.src}" />
<reference refid="jar.includes" torefid="extra.jar.includes" />
</antcall>
</target>
<target name="publish-local" depends="jar">
<antcall target="common.sources.jar">
<param name="src" value="${result.src}" />
<reference torefid="extra.jar.includes" refid="jar.includes" />
</antcall>
<antcall target="common.javadoc.jar">
<param name="src" value="${result.src}" />
</antcall>
<antcall target="common.publish-local" />
</target>
<target name="clean">
<antcall target="common.clean" />
</target>
<target name="checkstyle">
<antcall target="common.checkstyle">
<param name="cs.src" location="src" />
</antcall>
</target>
<target name="test" depends="checkstyle">
<!-- <antcall target="common.test.run" /> -->
</target>
</project>
|