Skip to content
Browse files

build.xml - Added zip task.

  • Loading branch information
eduardolundgren committed Nov 20, 2008
1 parent 217c5e2 commit 2747b5c018b31eb69e77f07a6616428cf206f967
Showing with 20 additions and 6 deletions.
  1. +20 −6 release/build.xml
@@ -11,15 +11,18 @@

<project name="jquery-ui" default="deploy-release" basedir=".">

<target name="deploy-release" depends=", concatenate, minify, pack, copy, replace-version" description="Release builder">
<target name="deploy-release" depends=", concatenate, minify, pack, copy, replace-version, zip" description="Release builder">

<target name="">
<property file="" />

<property name="version" value="1.6" />
<property name="current.version" value="1.6pre" />
<property name="release.version" value="1.6" />
<property name="release.filename" value="jquery.ui-${release.version}" />

<property name="dist.dir" value="dist" />
<property name="dist.dir" value="dist/${release.filename}/" />
<property name="build.dir" value="build" />
<property name="ui.dir" value="../" />
<property name="src.dir" value="${ui.dir}/ui/" />
@@ -37,10 +40,21 @@

<target name="replace-version" depends="">
<replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true">
<replaceregexp match="@VERSION" replace="${release.version}" flags="g" byline="true">
<fileset dir="${dist.dir}/ui/" includes="*.js"/>
<echo message="Replaced all @VERSION to ${version}." />
<echo message="Replaced all @VERSION to ${release.version}." />

<replaceregexp match="${current.version}" replace="${release.version}" flags="g" byline="true">
<fileset dir="${dist.dir}/" includes="version.txt"/>
<echo message="Update version to ${release.version} into version.txt." />

<target description="Zip the package" name="zip">
<zip destfile="${dist.dir}/../${release.filename}.zip">
<zipfileset dir="${dist.dir}/" />

<target name="concatenate" depends="">
@@ -157,7 +171,7 @@
<echo message="Files copied." />

<target depends="" name="clean">
<delete dir="${dist.dir}" />

0 comments on commit 2747b5c

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