Author: raju
Date: 2007-08-15 19:23:49 -0700 (Wed, 15 Aug 2007)
New Revision: 6077

Modified:
   labs/lzproject/trunk/build.xml
Log:
lzproject-solo.war now added to SOLO war in folder /war.


Modified: labs/lzproject/trunk/build.xml
===================================================================
--- labs/lzproject/trunk/build.xml      2007-08-15 23:48:54 UTC (rev 6076)
+++ labs/lzproject/trunk/build.xml      2007-08-16 02:23:49 UTC (rev 6077)
@@ -322,15 +322,47 @@
                                <include name="**/*.*" />
                        </fileset>
                </war>
+                <!-- The WAR has to be encapsulated into the WAR file for 
download -->
+               <copy todir="${temp.dir}/war" verbose="true">
+                       <fileset dir="${webapp.war.dir}" casesensitive="no">
+                               <include name="${webapp.name}-solo.war" />
+                       </fileset>
+               </copy>
+               <!-- Delete the WAR file and generate a new one containing the 
WAR itself -->
+                <delete file="${webapp.war.dir}/${webapp.name}-solo.war"/>
+               <war destfile="${webapp.war.dir}/${webapp.name}-solo.war"
+                        webxml="${webapp.webinf.dir}/web.xml">
+                       <!-- LzTrack java classes -->
+                       <classes dir="${webapp.classes.dir}" />
+                       <lib dir="${lib.dir}" includes="*.jar" />
+                       <!-- OpenLaszlo JavaScript and resources for DHTML -->
+                       <fileset dir="${openlaszlo.home}" >
+                               <include name="/lps/includes/**/*.*" />
+                       </fileset>
+
+                       <fileset dir="${conf.dir}">
+                               <include name="**/*.*" />
+                       </fileset>
+                       <!-- OpenLaszlo client files: LZX, *.js, *.html, *.css, 
... -->
+                       <fileset dir="${temp.dir}">
+                               <exclude name="**/*.lzx"/>
+                               <include name="**/*.*"/>
+                       </fileset>
+                       <!-- the Apache Derby DB files -->
+                       <fileset dir="${derby.dir}" >
+                               <include name="**/*.*" />
+                       </fileset>
+               </war>
        </target>
-  <target name="doc"
-      description="Build documentation"
-      depends="init" unless="skip.doc">
 
-      <!-- Build the docs -->
-      <ant dir="docbook" />
+        <!-- TODO: implement Docbook style docs generation -->
+        <target name="doc"
+                description="Build documentation"
+                depends="init" unless="skip.doc">
 
-  </target>
+                <!-- Build the docs -->
+                <ant dir="docbook" />
+        </target>
 
 
        <!-- deploy proxied WAR -->


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to