- <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>
- <echo message="${JQ_MIN} built." />
- </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: ${date}" file="${JQ}" />
+ <echo message="${JQ} built." />
+ </target>