Subversion Repository Public Repository

litesoft

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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?xml version="1.0" encoding="UTF-8"?>
<project default="all" name="GWTsample">

    <property name="TheApp" value="GWTsample"/>

    <property name="TheAppXMLpath" value="org.sample.MyGwtApplication"/>

    <property file="build.properties"/>

    <!-- Configure path to GWT SDK -->
    <property name="gwt.sdk" location="${zGlobalDir}/GWT/gwt-2.2.0" />



    <dirname property="basedir" file="${ant.file}"/>
    <property name="webdir" value="${basedir}/build"/>
    <property name="outputdir" value="${webdir}/WEB-INF/classes"/>

    <!-- Compiler options -->
    <property name="build.dir" value="build"/>
    <property name="gwt.output.dir" value="${build.dir}/gwtbuild"/>



    <property name="compiler.debug" value="on"/>
    <property name="compiler.generate.no.warnings" value="off"/>
    <property name="compiler.args" value=""/>
    <property name="compiler.max.memory" value="512m"/>

    <patternset id="ignored.files">
        <exclude name="**/CVS/**"/>
        <exclude name="**/SCCS/**"/>
        <exclude name="**/RCS/**"/>
        <exclude name="**/rcs/**"/>
        <exclude name="**/.DS_Store/**"/>
        <exclude name="**/.svn/**"/>
        <exclude name="**/.pyc/**"/>
        <exclude name="**/.pyo/**"/>
        <exclude name="**/*.pyc/**"/>
        <exclude name="**/*.pyo/**"/>
        <exclude name="**/.git/**"/>
    </patternset>
    <patternset id="library.patterns">
        <include name="*.zip"/>
        <include name="*.war"/>
        <include name="*.egg"/>
        <include name="*.ear"/>
        <include name="*.swc"/>
        <include name="*.jar"/>
    </patternset>
    <patternset id="compiler.resources">
        <include name="**/?*.properties"/>
        <include name="**/?*.xml"/>
        <include name="**/?*.gif"/>
        <include name="**/?*.png"/>
        <include name="**/?*.jpeg"/>
        <include name="**/?*.jpg"/>
        <include name="**/?*.html"/>
        <include name="**/?*.dtd"/>
        <include name="**/?*.tld"/>
        <include name="**/?*.properties"/>
        <include name="**/?*.xml"/>
        <include name="**/?*.html"/>
        <include name="**/?*.dtd"/>
        <include name="**/?*.tld"/>
        <include name="**/?*.gif"/>
        <include name="**/?*.png"/>
        <include name="**/?*.jpeg"/>
        <include name="**/?*.jpg"/>
    </patternset>

    <!-- Project Libraries -->

    <!-- Global Libraries -->

    <path id="library.gwt_dev.classpath">
        <pathelement location="${gwt.sdk}/gwt-dev.jar"/>
    </path>

    <path id="library.gwt_user.classpath">
        <pathelement location="${gwt.sdk}/gwt-user.jar"/>
    </path>

    <path id="library.gwt_servlet.classpath">
        <pathelement location="${gwt.sdk}/gwt-servlet.jar"/>
        <pathelement location="${gwt.sdk}/gwt-servlet-deps.jar"/>
    </path>

    <!-- Modules -->

    <!-- Module TheApp -->

    <property name="TheApp.compiler.args" value="${compiler.args}"/>

    <property name="TheApp.output.dir" value="${build.dir}/${TheApp}"/>

    <path id="TheApp.module.bootclasspath">
        <!-- Paths to be included in compilation bootclasspath -->
    </path>

    <path id="TheApp.module.classpath">
        <pathelement location="${basedir}/src"/>
        <pathelement location="${basedir}/war"/>
        <path refid="library.gwt_user.classpath"/>
        <path refid="library.gwt_dev.classpath"/>
    </path>

    <path id="TheApp.runtime.module.classpath">
        <pathelement location="${TheApp.output.dir}"/>
        <pathelement location="${basedir}/src"/>
        <pathelement location="${basedir}/war"/>
        <path refid="library.gwt_user.classpath"/>
        <path refid="library.gwt_dev.classpath"/>
    </path>


    <patternset id="TheApp.excluded.from.module">
        <patternset refid="ignored.files"/>
    </patternset>

    <patternset id="TheApp.excluded.from.compilation">
        <patternset refid="TheApp.excluded.from.module"/>
    </patternset>

    <path id="TheApp.module.sourcepath">
        <pathelement location="${basedir}/src"/>
    </path>

    <target name="TheApp.compile.module" description="Compile module TheApp; classes"
            depends="">
        <mkdir dir="${TheApp.output.dir}"/>
        <javac destdir="${TheApp.output.dir}" includeantruntime="false" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
            <compilerarg line="${TheApp.compiler.args}"/>
            <bootclasspath refid="TheApp.module.bootclasspath"/>
            <classpath refid="TheApp.module.classpath"/>
            <src refid="TheApp.module.sourcepath"/>
            <patternset refid="TheApp.excluded.from.compilation"/>
        </javac>

        <copy todir="${TheApp.output.dir}">  
            <fileset dir="${basedir}/src">  
                <patternset refid="compiler.resources"/>  
                <type type="file"/>  
            </fileset>  
        </copy>  
    </target>  

    <target name="TheApp.clean.module" description="cleanup module">  
        <delete dir="${TheApp.output.dir}"/>  
    </target>  
             
    <target name="TheApp.compile.gwt" description="GWT Compile module TheApp"
            depends="TheApp.compile.module">
        <delete dir="${gwt.output.dir}"/>  
        <property name="gwt.localWorkers" value="2"/>  
        <java fork="true" classname="com.google.gwt.dev.Compiler" failonerror="true">  
            <jvmarg line="-Xmx1024m -Xms512m -XX:PermSize=64m -XX:MaxPermSize=128m"/>  
            <classpath>  
                <path refid="TheApp.module.sourcepath"/>  
                <path refid="TheApp.runtime.module.classpath"/>  
            </classpath>  
            <arg value="-logLevel"/>  
            <arg value="WARN"/><!-- options: DEBUG -->  
            <arg value="-war"/>  
            <arg value="${gwt.output.dir}"/>  
            <arg value="-localWorkers"/>  
            <arg value="${gwt.localWorkers}"/>  
            <arg value="-style"/>  
            <arg value="OBF"/><!-- options: PRETTY or DETAIL -->
            <arg value="${TheAppXMLpath}"/>  
        </java>  
    </target>  

    <target name="make.war.dir" description="Build War Dir (Package)"
            depends="TheApp.compile.gwt">  
        <mkdir dir="${build.dir}/war"/>  
        <copy todir="${build.dir}/war/WEB-INF">  
            <fileset dir="war/WEB-INF"/>  
        </copy>  
        <copy todir="${build.dir}/war/app">  
            <fileset dir="${gwt.output.dir}/app"/>  
        </copy>  
        <jar destfile="${build.dir}/war/WEB-INF/lib/${TheApp}.jar">  
            <fileset dir="${TheApp.output.dir}" />  
        </jar>  
        <copy todir="${build.dir}/war/WEB-INF/lib" flatten="true"> 
            <fileset dir="${gwt.sdk}" includes="gwt-servlet*.jar" />
        </copy>  
    </target>  

    <target name="clean.war.dir" description="cleanup war dir">  
        <delete dir="build/war"/>  
    </target>  

    <target name="build.war.file" description="build war file"
            depends="make.war.dir">  
        <delete file="build/${TheApp}.war"/>  
        <war destfile="build/${TheApp}.war" webxml="build/war/WEB-INF/web.xml">  
            <zipfileset dir="build/war/app" prefix="app"/>  
            <lib  dir="build/war/WEB-INF/lib"/>  
        </war>  
    </target>  

    <target name="init" description="Build initialization">  
        <!-- Perform any build initialization in this target -->  
        <mkdir dir="build"/>  
    </target>  

    <target name="clean" description="cleanup all" 
            depends="TheApp.clean.module, clean.war.dir"/>  

    <target name="all" description="build all" 
            depends="init, clean, build.war.file"/>  

</project>

Commits for litesoft/trunk/GWT_Sandbox/GWTsample/build.xml

Diff revisions: vs.
Revision Author Commited Message
162 GeorgeS picture GeorgeS Fri 01 Apr, 2011 19:58:40 +0000