Skip to content

Commit e472f90

Browse files
committed
Build: Adding googlecdn target to deploy-release-target and fixing checksum generation
1 parent 42b419d commit e472f90

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

build/build.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
<property description="Google Closure" name="closure-jar" value="${build.dir}/google-compiler-20091218.jar" />
4040

41-
<target name="deploy-release" depends="clean, docs-download, concatenate, minify, copy, replace-version, prepend-header, zip" description="Release builder">
41+
<target name="deploy-release" depends="clean, docs-download, concatenate, minify, copy, replace-version, prepend-header, zip, googlecdn" description="Release builder">
4242
</target>
4343

4444
<target name="replace-version">
@@ -287,22 +287,30 @@
287287
<copy todir="google">
288288
<fileset dir=".." includes="AUTHORS.txt, GPL-LICENSE.txt, MIT-LICENSE.txt, version.txt" />
289289
</copy>
290+
<copy todir="google">
291+
<fileset dir="${dist.dir}ui" includes="jquery-ui.js" />
292+
<fileset dir="${dist.dir}ui/minified" includes="jquery-ui.min.js" />
293+
</copy>
290294
<copy todir="google/i18n">
291295
<fileset dir="${dist.dir}ui/i18n" />
292296
<fileset dir="${dist.dir}ui/minified/i18n" />
293297
</copy>
294298
<copy todir="google/themes">
295299
<fileset dir="../themes" />
296300
</copy>
301+
<checksum>
302+
<fileset dir="google" />
303+
</checksum>
297304
<for param="file">
298305
<path><fileset dir="google" includes="**/" excludes="**/*.MD5" /></path>
299306
<sequential>
300307
<propertyregex override="yes" property="relativepath" input="@{file}" regexp=".+?google[\\/](.+)$" replace="\1"/>
301308
<propertyregex override="yes" property="relativepath" input="${relativepath}" regexp="\\" replace="/" global="true" />
302-
<checksum property="sum" file="@{file}" />
303-
<concat destfile="google/MANIFEST" append="yes" fixlastline="yes">${relativepath} ${sum}</concat>
309+
<concat destfile="google/MANIFEST" append="yes">${relativepath} </concat>
310+
<concat destfile="google/MANIFEST" append="yes"><file file="@{file}.MD5" /></concat>
304311
</sequential>
305312
</for>
313+
<delete dir="google" includes="**/*.MD5" />
306314
</target>
307315

308316
</project>

0 commit comments

Comments
 (0)