litesoft
@ 444
litesoft / trunk / GWT_Sandbox / UIdesign / build.xml
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 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
<?xml version="1.0" encoding="UTF-8"?> <project default="all" basedir="." name="UIdesign"> <property name="DevRootDir" value="../../.."/> <property name="TheAppXMLpath" value="com.test.uidesign.UIdesign"/> <property name="LitesoftJavaDir" value="${DevRootDir}/litesoft/Java"/> <property name="zGlobalDir" value="${DevRootDir}/zGlobal"/> <property name="GWTsdk" value="${zGlobalDir}/GWT/gwt-2.2.0"/> <property name="GWTincubator" value="${zGlobalDir}/GWT/GWTincubator/gwt-incubator-20101117-r1766.jar"/> <property name="build.dir" value="build"/> <property name="webdir" value="${build.dir}/war"/> <property name="outputdir" value="${webdir}/WEB-INF/classes"/> <property name="gwt.output.dir" value="${build.dir}/gwtbuild"/> <target name="all" depends="clean, compile, package"/> <target name="all" depends="clean, compile, gwtCompile, war"/> <property name="TheApp" value="${ant.project.name}"/> <!-- Compiler options --> <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> <!-- Global Libraries --> <path id="library.gwt_dev.classpath"> <pathelement location="${GWTsdk}/gwt-dev.jar"/> </path> <path id="library.gwt_user.classpath"> <pathelement location="${GWTsdk}/gwt-user.jar"/> </path> <path id="library.gwt_servlet.classpath"> <pathelement location="${GWTsdk}/gwt-servlet.jar"/> <pathelement location="${GWTsdk}/gwt-servlet-deps.jar"/> </path> <path id="library.gwt_incubator.classpath"> <pathelement location="${zGlobalDir}/GWT/GWTincubator/gwt-incubator-20101117-r1766.jar"/> </path> <path id="library.commonsupload.classpath"> <pathelement location="${zGlobalDir}/CommonsUpLoad/commons-fileupload-1.2.1.jar"/> </path> <path id="library.pullparser.classpath"> <pathelement location="${zGlobalDir}/pullparser/xmlpull_1_1_3_4b.jar"/> <pathelement location="${zGlobalDir}/pullparser/xpp3-1.1.3.4-RC3.jar"/> </path> <path id="library.servlet.classpath"> <pathelement location="${zGlobalDir}/servlet-api.jar"/> </path> <!-- Project Libraries --> <path id="library.litesoftdeprecated.classpath"> <pathelement location="${LitesoftJavaDir}/libs/LiteSoftDeprecated.jar"/> </path> <path id="library.litesoftgwtcshomonyms.classpath"> <pathelement location="${LitesoftJavaDir}/libs/LiteSoft_csHomonyms.jar"/> </path> <path id="library.litesoftlogger.classpath"> <pathelement location="${LitesoftJavaDir}/logger/LiteSoftLogger.jar"/> </path> <!-- Modules --> <!-- Module LiteSoftAnywhere --> <!-- Module LiteSoftClientGWT --> <!-- Module LiteSoftServer --> <!-- Module LiteSoftServerGWT --> <!-- Module TheApp --> <property name="TheApp.compiler.args" value="${compiler.args}"/> <property name="TheApp.output.dir" value="${build.dir}/production/${TheApp}"/> <property name="TheApp.testoutput.dir" value="${build.dir}/test/${TheApp}"/> <path id="TheApp.module.bootclasspath"> <!-- Paths to be included in compilation bootclasspath --> </path> <path id="TheApp.module.classpath"> <pathelement location="${litesoftanywhere.output.dir}"/> <pathelement location="${litesoftanywhere.testoutput.dir}"/> <pathelement location="${litesoftclientgwt.output.dir}"/> <pathelement location="${litesoftclientgwt.testoutput.dir}"/> <pathelement location="${litesoftserver.output.dir}"/> <pathelement location="${litesoftserver.testoutput.dir}"/> <pathelement location="${litesoftservergwt.output.dir}"/> <pathelement location="${litesoftservergwt.testoutput.dir}"/> <path refid="library.litesoftlogger.classpath"/> <path refid="library.litesoftdeprecated.classpath"/> <pathelement location="${basedir}/App/src"/> <pathelement location="${basedir}/App/war"/> <path refid="library.gwt_incubator.classpath"/> <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="${TheApp.testoutput.dir}"/> <path refid="litesoftanywhere.runtime.module.classpath"/> <path refid="litesoftclientgwt.runtime.module.classpath"/> <path refid="litesoftserver.runtime.module.classpath"/> <path refid="litesoftservergwt.runtime.module.classpath"/> <path refid="library.litesoftlogger.classpath"/> <path refid="library.litesoftdeprecated.classpath"/> <pathelement location="${basedir}/App/src"/> <pathelement location="${basedir}/App/war"/> <path refid="library.gwt_incubator.classpath"/> <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"> <dirset dir="App"> <include name="src"/> </dirset> </path> <target name="TheApp.compile.module" depends="TheApp.compile.module.production,TheApp.compile.module.tests" description="Compile module TheApp"/> <target name="TheApp.compile.module.production" depends="litesoftanywhere.compile.module,litesoftclientgwt.compile.module,litesoftserver.compile.module,litesoftservergwt.compile.module" description="Compile module TheApp; production classes"> <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="App/src"> <patternset refid="compiler.resources"/> <type type="file"/> </fileset> </copy> </target> <target name="TheApp.compile.module.tests" depends="TheApp.compile.module.production" description="compile module TheApp; test classes" unless="skip.tests"/> <target name="TheApp.clean.module" description="cleanup module"> <delete dir="${TheApp.output.dir}"/> <delete dir="${TheApp.testoutput.dir}"/> </target> <target name="TheApp.compile.gwt"> <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> <pathelement location="${GWTsdk.home.TheApp}/${GWTsdk.dev.jar.name}"/> <path refid="TheApp.module.sourcepath"/> <path refid="TheApp.runtime.module.classpath"/> </classpath> <arg value="-logLevel"/> <arg value="WARN"/> <arg value="-war"/> <arg value="${gwt.output.dir}"/> <arg value="-localWorkers"/> <arg value="${gwt.localWorkers}"/> <arg value="-style"/> <arg value="OBF"/> <arg value="com.test.uidesign.UIdesign"/> </java> </target> <target name="war" description="Build War Package"> <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> <copy todir="build/war/WEB-INF/lib" flatten="true"> <path> <pathelement location="${LitesoftJavaDir}/libs/LiteSoftDeprecated.jar"/> <pathelement location="${LitesoftJavaDir}/GWT/CShomonyms/LiteSoftGWTcsHomonyms.jar"/> <pathelement location="${LitesoftJavaDir}/logger/LiteSoftLogger.jar"/> <pathelement location="${zGlobalDir}/CommonsUpLoad/commons-fileupload-1.2.1.jar"/> <path refid="library.gwt_incubator.classpath"/> </path> </copy> <jar destfile="build/war/WEB-INF/lib/LiteSoftAnywhere.jar"> <fileset dir="${litesoftanywhere.output.dir}" /> </jar> <jar destfile="build/war/WEB-INF/lib/LiteSoftClientGWT.jar"> <fileset dir="${litesoftclientgwt.output.dir}" /> </jar> <jar destfile="build/war/WEB-INF/lib/${TheApp}.jar"> <fileset dir="${TheApp.output.dir}" /> </jar> </target> <target name="clean.war" description="cleanup war"> <delete dir="build/war"/> </target> <target name="build.war" depends="war" description="build war file"> <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="tests" depends="TheApp.compile.module"> </target> <target name="init" description="Build initialization"> <!-- Perform any build initialization in this target --> <mkdir dir="build"/> </target> <target name="clean" depends="TheApp.clean.module,clean.war,litesoftanywhere.clean.module,litesoftclientgwt.clean.module,litesoftserver.clean.module,litesoftservergwt.clean.module,litesoftservertests.clean.module" description="cleanup all"/> <target name="all" depends="init,clean,litesoftanywhere.compile.module,litesoftclientgwt.compile.module,litesoftserver.compile.module,litesoftservergwt.compile.module,litesoftservertests.compile.module,TheApp.compile.module,tests,TheApp.compile.gwt,war,build.war" description="build all"/> </project> |