aboutsummaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2009-01-08 19:01:26 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2009-01-08 19:01:26 +0000
commitd232d207b540ad8de92086d3aac18a83a7b519fb (patch)
tree039b8f5583c7c7b51cffa7e927092ebd4f7a2396 /release
parentee392f33a62f4c2a15aaa325c6cce2d69a9bdddd (diff)
downloadjquery-ui-d232d207b540ad8de92086d3aac18a83a7b519fb.tar.gz
jquery-ui-d232d207b540ad8de92086d3aac18a83a7b519fb.zip
release build: moved properties to top level, removing load.properties dependency completely
Diffstat (limited to 'release')
-rw-r--r--release/build.xml52
1 files changed, 25 insertions, 27 deletions
diff --git a/release/build.xml b/release/build.xml
index d0b4e6a14..050764649 100644
--- a/release/build.xml
+++ b/release/build.xml
@@ -16,34 +16,32 @@
<pathelement location="build/ant-contrib-0.6.jar"/>
</classpath>
</taskdef>
+
+ <property file="ant.properties" />
- <target name="deploy-release" depends="load.properties, concatenate, minify, pack, copy, replace-version, prepend-header, zip" description="Release builder">
- </target>
-
- <target name="load.properties">
- <property file="ant.properties" />
-
- <loadfile srcFile="../version.txt" property="release.version" />
- <property name="release.filename" value="jquery.ui-${release.version}" />
+ <loadfile srcFile="../version.txt" property="release.version" />
+ <property name="release.filename" value="jquery.ui-${release.version}" />
- <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/" />
+ <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/" />
- <property name="min.folder" value="${dist.dir}/ui/minified" />
- <property name="packed.folder" value="${dist.dir}/ui/packed" />
+ <property name="min.folder" value="${dist.dir}/ui/minified" />
+ <property name="packed.folder" value="${dist.dir}/ui/packed" />
- <property name="concatenated" value="jquery.ui.all" />
- <property name="concatenated.i18n" value="jquery.ui.i18n.all" />
+ <property name="concatenated" value="jquery.ui.all" />
+ <property name="concatenated.i18n" value="jquery.ui.i18n.all" />
- <property name="core.files" value="ui.core.js, ui.draggable.js, ui.droppable.js, ui.resizable.js, ui.selectable.js, ui.sortable.js, effects.core.js" />
+ <property name="core.files" value="ui.core.js, ui.draggable.js, ui.droppable.js, ui.resizable.js, ui.selectable.js, ui.sortable.js, effects.core.js" />
- <property description="YUI Compressor" name="yui-jar" value="${build.dir}/yuicompressor-2.4.2.jar" />
- <property description="Dean Edwards Packer" name="pack.php" value="${build.dir}/pack.php" />
+ <property description="YUI Compressor" name="yui-jar" value="${build.dir}/yuicompressor-2.4.2.jar" />
+ <property description="Dean Edwards Packer" name="pack.php" value="${build.dir}/pack.php" />
+
+ <target name="deploy-release" depends="concatenate, minify, pack, copy, replace-version, prepend-header, zip" description="Release builder">
</target>
- <target name="replace-version" depends="load.properties">
+ <target name="replace-version">
<replaceregexp match="@VERSION" replace="${release.version}" flags="g" byline="true">
<fileset dir="${dist.dir}/ui/" includes="*.js"/>
<fileset dir="${dist.dir}/ui/minified/" includes="*.js"/>
@@ -52,7 +50,7 @@
<echo message="Replaced all @VERSION to ${release.version}." />
</target>
- <target name="prepend-header" depends="load.properties">
+ <target name="prepend-header">
<!-- TODO: refactor this ugly mess -->
<copy todir="${dist.dir}/headers/">
<fileset dir="${dist.dir}/ui/" includes="*.js" />
@@ -97,7 +95,7 @@
</zip>
</target>
- <target name="concatenate" depends="load.properties">
+ <target name="concatenate">
<echo message="Building concatenated" />
<mkdir dir="${dist.dir}/ui/" />
<delete file="${dist.dir}/ui/${concatenated}.js" />
@@ -117,7 +115,7 @@
<echo message="Concatenated i18n built." />
</target>
- <target name="minify" depends="load.properties, concatenate" description="Remove all comments and whitespace, no compression, great in combination with GZip">
+ <target name="minify" depends="concatenate" description="Remove all comments and whitespace, no compression, great in combination with GZip">
<echo message="Building minified" />
<delete dir="${min.folder}/" />
<mkdir dir="${min.folder}" />
@@ -154,7 +152,7 @@
</target>
<!-- Using PHP Dean Edwards Packer -->
- <target name="pack" depends="load.properties, concatenate" description="Remove all comments and whitespace and compress">
+ <target name="pack" depends="concatenate" description="Remove all comments and whitespace and compress">
<echo message="Building packed" />
<delete dir="${packed.folder}/" />
<mkdir dir="${packed.folder}" />
@@ -182,7 +180,7 @@
<echo message="Packed i18n built." />
</target>
- <target description="Copy needed folders" name="copy" depends="load.properties">
+ <target description="Copy needed folders" name="copy">
<echo message="Copying files" />
<mkdir dir="${dist.dir}" />
@@ -216,8 +214,8 @@
<echo message="Files copied." />
</target>
- <target depends="load.properties" name="clean">
+ <target name="clean">
<delete dir="dist" />
</target>
-
+
</project> \ No newline at end of file