]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Adding googlecdn target to deploy-release-target and fixing checksum generation
authorjzaefferer <joern.zaefferer@gmail.com>
Tue, 30 Mar 2010 11:23:16 +0000 (13:23 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Tue, 30 Mar 2010 11:23:16 +0000 (13:23 +0200)
build/build.xml

index 826ea0c9e7394fee8d2a2c19305f2d0611ead4cb..71e1dd9c1568509d8c193acc8fab206a90415e3b 100644 (file)
@@ -38,7 +38,7 @@
 
        <property description="Google Closure" name="closure-jar" value="${build.dir}/google-compiler-20091218.jar" />
        
-       <target name="deploy-release" depends="clean, docs-download, concatenate, minify, copy, replace-version, prepend-header, zip" description="Release builder">
+       <target name="deploy-release" depends="clean, docs-download, concatenate, minify, copy, replace-version, prepend-header, zip, googlecdn" description="Release builder">
        </target>
        
        <target name="replace-version">
                <copy todir="google">
                        <fileset dir=".." includes="AUTHORS.txt, GPL-LICENSE.txt, MIT-LICENSE.txt, version.txt" />
                </copy>
+               <copy todir="google">
+                       <fileset dir="${dist.dir}ui" includes="jquery-ui.js" />
+                       <fileset dir="${dist.dir}ui/minified" includes="jquery-ui.min.js" />
+               </copy>
                <copy todir="google/i18n">
                        <fileset dir="${dist.dir}ui/i18n" />
                        <fileset dir="${dist.dir}ui/minified/i18n" />
                <copy todir="google/themes">
                        <fileset dir="../themes" />
                </copy>
+               <checksum>
+                       <fileset dir="google" />
+               </checksum>
                <for param="file">
                <path><fileset dir="google" includes="**/" excludes="**/*.MD5" /></path>
                        <sequential>
                                <propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?google[\\/](.+)$" replace="\1"/>
                                <propertyregex override="yes" property="relativepath" input="${relativepath}" regexp="\\" replace="/" global="true" />
-                               <checksum property="sum" file="@{file}" />
-                               <concat destfile="google/MANIFEST" append="yes" fixlastline="yes">${relativepath} ${sum}</concat>
+                               <concat destfile="google/MANIFEST" append="yes">${relativepath} </concat>
+                               <concat destfile="google/MANIFEST" append="yes"><file file="@{file}.MD5" /></concat>
                        </sequential>
                </for>
+               <delete dir="google" includes="**/*.MD5" />
     </target>
 
 </project>