Skip to content
Permalink
Browse files

Build: Adding googlecdn target to deploy-release-target and fixing ch…

…ecksum generation
  • Loading branch information
jzaefferer committed Mar 30, 2010
1 parent 42b419d commit e472f908d77252df1bb52bf323a61ca1ecbd0519
Showing with 11 additions and 3 deletions.
  1. +11 −3 build/build.xml
@@ -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">
@@ -287,22 +287,30 @@
<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>
<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>

0 comments on commit e472f90

Please sign in to comment.
You can’t perform that action at this time.