[fusion-commits] r2616 - branches/fusion-mg24

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Oct 8 05:36:46 PDT 2012


Author: jng
Date: 2012-10-08 05:36:46 -0700 (Mon, 08 Oct 2012)
New Revision: 2616

Modified:
   branches/fusion-mg24/build.xml
Log:
#537: Add a new "selfbuild" target that creates a zip file containing the necessary build files required to "re-compile" a new fusionSF.js and fusionSF-compressed.js in a production Fusion installation (that wouldn't have these files)

Modified: branches/fusion-mg24/build.xml
===================================================================
--- branches/fusion-mg24/build.xml	2012-10-05 05:18:37 UTC (rev 2615)
+++ branches/fusion-mg24/build.xml	2012-10-08 12:36:46 UTC (rev 2616)
@@ -77,6 +77,7 @@
   <property name="app.version" value="2.0.x"/>
   <property name="build.home" value="${basedir}/build"/>
   <property name="deploy.home" value="${basedir}/../${app.name}"/>
+  <property name="selfbuild.home" value="${basedir}/selfbuild"/>
   <property name="dist.home" value="${basedir}/dist"/>
   <property name="docs.home" value="${build.home}/docs"/>
 
@@ -321,8 +322,29 @@
     </copy>
   </target>
 
+<!-- ==================== SelfBuild ========================================== -->
+<!--
+  The "selfbuild" copies this file and any supporting tools/utilities and creates a zip
+  file containing the required build tools to "re-compile" a new fusionSF.js and
+  fusionSF-compressed.js on a production fusion installation
+-->
+ <target name="selfbuild" description="Create zip file containing build tools">
+    <echo message="Deploying to web server"/>
+    <mkdir dir="${selfbuild.home}"/>
+    <delete file="${selfbuild.home}/${app.name}-buildtools.zip" />
+    <copy todir="${selfbuild.home}">
+      <fileset dir="${basedir}"
+            includes="build.xml
+                      config_dist.json
+                      docs_config/**
+                      utils/**" />
+    </copy>
+    <!-- Create source zip file -->
+    <zip destfile="${selfbuild.home}/${app.name}-buildtools.zip">
+      <zipfileset dir="${selfbuild.home}" />
+    </zip>
+  </target>
 
-
 <!-- ==================== Dist Target ===================================== -->
 <!--
 
@@ -366,6 +388,7 @@
     <echo message="Removing build directories"/>
     <delete dir="${build.home}"/>
     <delete dir="${dist.home}"/>
+    <delete dir="${selfbuild.home}"/>
     <delete file="${basedir}/lib/${sfName}.js" />
     <delete file="${basedir}/lib/${sfName}-compressed.js" />
   </target>



More information about the fusion-commits mailing list