summaryrefslogtreecommitdiffstats
path: root/docs/dist/doc/README-167.html
Commit message (Expand)AuthorAgeFilesLines
* 167 readmeaclement2010-01-011-0/+165
reecommitdiffstats
path: root/build/ide.xml
blob: d4684733922db48d888895a0d140f57c7c67a92d (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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?xml version="1.0"?>

<project xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:artifact="antlib:org.apache.maven.artifact.ant" xmlns:ivy="antlib:org.apache.ivy.ant" name="Build script for IDE users" basedir=".." default="theme-and-default-widgetset">
    <property name="work.dir" location="work" />
    <property file="build.properties" />

    <!-- Setting this to 0 disables the parallel compilation -->
    <property name="threadsPerProcessor" value="1" />

    <target name="resolve" unless="resolve.done">
        <ivy:resolve log="download-only" file="client-compiler/ivy.xml" conf="ide" />
        <ivy:cachepath pathid="client-compiler.deps" conf="ide" />
        <ivy:resolve log="download-only" file="server/ivy.xml" conf="ide" />
        <ivy:cachepath pathid="server.deps" conf="ide" />
        <ivy:resolve log="download-only" file="client/ivy.xml" conf="ide" />
        <ivy:cachepath pathid="client.deps" conf="ide" />
        <ivy:resolve log="download-only" file="shared/ivy.xml" conf="ide" />
        <ivy:cachepath pathid="shared.deps" conf="ide" />
        <ivy:resolve log="download-only" file="uitest/ivy.xml" conf="ide" />
        <ivy:cachepath pathid="uitest.deps" conf="ide" />
        <ivy:resolve log="download-only" file="buildhelpers/ivy.xml" />
        <ivy:cachepath pathid="buildhelpers.deps" />
        <ivy:resolve log="download-only" file="gwt/ivy.xml" conf="ide" />
        <ivy:cachepath pathid="gwt.deps" conf="ide" />

        <path id="classpath">
            <path location="bin" />
            <path location="build/classes" />
            <path refid="client-compiler.deps" />
            <path refid="server.deps" />
            <path refid="shared.deps" />
            <path refid="client.deps" />
            <path refid="buildhelpers.deps" />
            <path refid="gwt.deps" />
            <path refid="uitest.deps" />
            <path location="server/src" />
            <path location="shared/src" />
            <path location="uitest/src" />
            <path location="client/src" />
        </path>
        <property name="resolve.done" value="true" />
    </target>

    <target name="theme-and-default-widgetset" depends="resolve">
        <!-- threadCount is ignored unless threadsPerProcessor is 0 -->
        <parallel threadsPerProcessor="${threadsPerProcessor}" threadCount="1">
            <antcall target="default-widgetset" inheritRefs="true" />
            <antcall target="themes" inheritRefs="true" />
            <antcall target="vaadinPush.js" inheritRefs="true" />
        </parallel>
    </target>

    <target name="themes" depends="resolve">
        <!-- threadCount is ignored unless threadsPerProcessor is 0 -->
        <parallel threadsPerProcessor="${threadsPerProcessor}" threadCount="1">
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="base" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="runo" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="reindeer" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="chameleon" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="liferay" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="valo" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="tests-valo" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="tests-valo-dark" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="tests-valo-metro" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="tests-valo-flat" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="tests-valo-flatdark" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="tests-valo-facebook" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
                <param name="theme" value="tests-valo-blueprint" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
              <param name="theme" value="tests-valo-light" />
            </antcall>
            <antcall target="compile-theme" inheritRefs="true">
              <param name="theme" value="tests-valo-disabled-animations" />
            </antcall>
        </parallel>
    </target>

    <target name="compile-theme" depends="resolve">
        <java classname="com.vaadin.buildhelpers.CompileTheme" failonerror="yes" fork="yes">
            <classpath refid="classpath" />
            <jvmarg value="-Djava.awt.headless=true" />
            <arg value="--theme" />
            <arg value="${theme}" />
            <arg value="--theme-folder" />
            <arg value="WebContent/VAADIN/themes" />
            <arg value="--version" />
            <arg value="${vaadin.version}" />
        </java>

    </target>


    <target name="default-widgetset">
        <antcall target="compile-widgetset" inheritRefs="true">
            <param name="widgetset" value="com.vaadin.DefaultWidgetSet" />
        </antcall>
    </target>

    <target name="testing-widgetset">
        <antcall target="compile-widgetset" inheritRefs="true">
            <param name="widgetset" value="com.vaadin.tests.widgetset.TestingWidgetSet" />
        </antcall>
    </target>

    <target name="compile-widgetset" depends="resolve">
        <property name="module" value="${widgetset}" />
        <property name="module.output.dir" location="WebContent/VAADIN/widgetsets" />
        <property name="logLevel" value="TRACE" />
        <property name="style" value="PRETTY" />
        <property name="localWorkers" value="2" />
        <!-- Whether assertions should be compiled into the widgetset. 
             Either "-ea" to enable or "" to disable. -->
        <property name="assertions" value="-ea" />
        <property name="extraParams" value="" />
        
        <property name="gwt.usearchives" value="true" />
        <property name="gwt.persistentunitcache" value="false" />

        <mkdir dir="${module.output.dir}" />

        <echo>Compiling ${module} to ${module.output.dir} with parameters -logLevel ${logLevel} -style ${style} -localWorkers ${localWorkers} ${assertions} -strict ${extraParams}</echo>

        <!--<ivy:resolve log="download-only" inline="true" organisation="javax.validation" module="validation-api" 
            revision="1.0.0.GA"/> -->

        <!-- compile the module -->
        <java classname="com.google.gwt.dev.Compiler" classpathref="classpath" failonerror="yes" fork="yes" maxmemory="512m">
            <arg value="-workDir" />
            <arg value="${work.dir}" />
            <arg value="-logLevel" />
            <arg value="${logLevel}" />
            <arg value="-war" />
            <arg value="${module.output.dir}" />
            <arg value="-style" />
            <arg value="${style}" />
            <arg value="-localWorkers" />
            <arg value="${localWorkers}" />
            <arg line="${assertions}" />
            <arg value="-strict" />
            <arg line="${extraParams}" />
            <arg value="${module}" />

            <sysproperty key="vFailIfNotSerializable" value="true" />

            <jvmarg value="-Xss8M" />
            <jvmarg value="-Xmx1G" />
            <jvmarg value="-XX:MaxPermSize=256M" />
            <jvmarg value="-Djava.awt.headless=true" />
            <jvmarg value="-Dgwt.usearchives=${gwt.usearchives}" />
            <jvmarg value="-Dgwt.persistentunitcache=${gwt.persistentunitcache}" />
        </java>
    </target>
    <target name="vaadinPush.js" depends="resolve">
        <ant antfile="${basedir}/push/build.xml" target="vaadinPush.js" dir="${basedir}/push" />
        <property name="js.output.dir" location="WebContent" />
        <property name="push.js.dir" location="${basedir}/push/result/js" />
        <copy todir="${js.output.dir}">
            <fileset dir="${push.js.dir}" includes="VAADIN/vaadinPush*" excludes="**/*.gz">
            </fileset>
        </copy>
    </target>
    
    <target name="clean-unitcache">
        <delete dir="WebContent/VAADIN/gwt-unitCache" />
    </target>
</project>