mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Changed build.xml to use YUICompressor, fixes #3779.
This commit is contained in:
parent
434b87b8a2
commit
12166e9bb2
18
build.xml
18
build.xml
@ -18,6 +18,7 @@
|
|||||||
<property description="Source Folder" name="SRC_DIR" value="src" />
|
<property description="Source Folder" name="SRC_DIR" value="src" />
|
||||||
<property description="Files for parsing etc." name="BUILD_DIR" value="build" />
|
<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="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" />
|
<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">
|
<target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip">
|
||||||
<echo message="Building ${JQ_MIN}" />
|
<echo message="Building ${JQ_MIN}" />
|
||||||
<java jar="${JAR}" fork="true">
|
<apply executable="java" parallel="false" verbose="true" dest="${DIST_DIR}">
|
||||||
<arg value="${BUILD_DIR}/build/min.js" />
|
<fileset dir="${DIST_DIR}">
|
||||||
<arg value="${JQ}" />
|
<include name="jquery.js" />
|
||||||
<arg value="${JQ_MIN}" />
|
</fileset>
|
||||||
</java>
|
<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." />
|
<echo message="${JQ_MIN} built." />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user