+ <target name="selector" depends="init" description="Builds the selector library for jQuery from Sizzle.">
+ <copy file="src/sizzle/sizzle.js" tofile="src/selector.js" overwrite="true" />
+ <replaceregexp match="// EXPOSE(.*) " replace="// EXPOSE\1 ${sizzle-exports}" file="src/selector.js" />
+ <replaceregexp match="window.Sizzle(.*) " replace="" file="src/selector.js" />
+ </target>
+
+ <target name="jquery" depends="init,selector" description="Main jquery build, concatenates source files and replaces @VERSION">
+ <echo message="Building ${JQ}" />
+ <mkdir dir="${dist}" />
+ <concat destfile="${JQ}">
+ <fileset file="src/intro.js" />
+ <fileset file="src/core.js" />
+ <fileset file="src/support.js" />
+ <fileset file="src/data.js" />
+ <fileset file="src/queue.js" />
+ <fileset file="src/attributes.js" />
+ <fileset file="src/event.js" />
+ <fileset file="src/selector.js" />
+ <fileset file="src/traversing.js" />
+ <fileset file="src/manipulation.js" />
+ <fileset file="src/css.js" />
+ <fileset file="src/ajax.js" />
+ <fileset file="src/xhr.js" />
+ <fileset file="src/transports/jsonp.js" />
+ <fileset file="src/transports/script.js" />
+ <fileset file="src/transports/xhr.js" />
+ <fileset file="src/effects.js" />
+ <fileset file="src/offset.js" />
+ <fileset file="src/dimensions.js" />
+ <fileset file="src/outro.js" />
+ </concat>
+ <replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
+ <exec executable="git" outputproperty="date">
+ <arg line="log -1 --pretty=format:%ad" />
+ </exec>
+ <replaceregexp match="(\(\s*function\s*\(\s*jQuery\s*\)\s*\{)|(\}\s*\)\s*\(\s*jQuery\s*\)\s*;)" flags="g" replace="" file="${JQ}" />
+ <replaceregexp match="@DATE" replace="${date}" file="${JQ}" />
+ <echo message="${JQ} built." />
+ </target>
+
+ <target name="lint" depends="jquery" description="Check jQuery against JSLint">
+ <exec executable="java">
+ <arg line="-jar build/js.jar build/jslint-check.js" />
+ </exec>
+ </target>
+
+ <target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip">
+ <echo message="Building ${JQ_MIN}" />
+ <apply executable="java" parallel="false" verbose="true" dest="${dist}">
+ <fileset dir="${dist}">