diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-11-20 13:42:56 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-11-20 13:42:56 +0000 |
commit | 2747b5c018b31eb69e77f07a6616428cf206f967 (patch) | |
tree | 74cdaa2fc5b6a770bc3994ffc1ca60c907c9211c /release/build.xml | |
parent | 217c5e2c2f505c8fbbb6e6513276600624f5d42b (diff) | |
download | jquery-ui-2747b5c018b31eb69e77f07a6616428cf206f967.tar.gz jquery-ui-2747b5c018b31eb69e77f07a6616428cf206f967.zip |
build.xml - Added zip task.
Diffstat (limited to 'release/build.xml')
-rw-r--r-- | release/build.xml | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/release/build.xml b/release/build.xml index 21ec46ada..5ac376e3e 100644 --- a/release/build.xml +++ b/release/build.xml @@ -11,15 +11,18 @@ <project name="jquery-ui" default="deploy-release" basedir="."> - <target name="deploy-release" depends="load.properties, concatenate, minify, pack, copy, replace-version" description="Release builder"> + <target name="deploy-release" depends="load.properties, concatenate, minify, pack, copy, replace-version, zip" description="Release builder"> </target> <target name="load.properties"> <property file="ant.properties" /> - <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> <target name="replace-version" depends="load.properties"> - <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"/> </replaceregexp> - <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"/> + </replaceregexp> + <echo message="Update version to ${release.version} into version.txt." /> + </target> + + <target description="Zip the package" name="zip"> + <zip destfile="${dist.dir}/../${release.filename}.zip"> + <zipfileset dir="${dist.dir}/" /> + </zip> </target> <target name="concatenate" depends="load.properties"> @@ -157,7 +171,7 @@ </copy> <echo message="Files copied." /> </target> - + <target depends="load.properties" name="clean"> <delete dir="${dist.dir}" /> </target> |