aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-01-04 17:21:00 +0000
committerJohn Resig <jeresig@gmail.com>2009-01-04 17:21:00 +0000
commit12166e9bb2684f294bdde5ecf106a548ed7370b4 (patch)
tree60e56438391a8c8304bada27ab6bf47643e4ef45 /build.xml
parent434b87b8a233eb24ec773de801f3adb460fbd0f4 (diff)
downloadjquery-12166e9bb2684f294bdde5ecf106a548ed7370b4.tar.gz
jquery-12166e9bb2684f294bdde5ecf106a548ed7370b4.zip
Changed build.xml to use YUICompressor, fixes #3779.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml18
1 files changed, 13 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index 2766cc8a0..b620aaadc 100644
--- a/build.xml
+++ b/build.xml
@@ -18,6 +18,7 @@
<property description="Source Folder" name="SRC_DIR" value="src" />
<property description="Files for parsing etc." name="BUILD_DIR" value="build" />
<property description="Rhino JS Engine" name="JAR" value="${BUILD_DIR}/js.jar" />
+ <property description="YUICompressor" name="YUICompressor" value="${BUILD_DIR}/yuicompressor-2.4.2.jar" />
<property description="Folder for jquery, min, lite and packed target" name="DIST_DIR" value="./dist" />
@@ -54,11 +55,18 @@
<target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip">
<echo message="Building ${JQ_MIN}" />
- <java jar="${JAR}" fork="true">
- <arg value="${BUILD_DIR}/build/min.js" />
- <arg value="${JQ}" />
- <arg value="${JQ_MIN}" />
- </java>
+ <apply executable="java" parallel="false" verbose="true" dest="${DIST_DIR}">
+ <fileset dir="${DIST_DIR}">
+ <include name="jquery.js" />
+ </fileset>
+ <arg line="-jar" />
+ <arg path="${YUICompressor}" />
+ <arg value="--charset" />
+ <arg value="ANSI" />
+ <arg value="-o" />
+ <targetfile />
+ <mapper type="glob" from="jquery.js" to="jquery.min.js" />
+ </apply>
<echo message="${JQ_MIN} built." />
</target>