- <target name="pack" depends="jquery" description="Remove all comments and whitespace and compress">
- <echo message="Building ${JQ_PACK}" />
- <java jar="${JAR}" fork="true">
- <arg value="${BUILD_DIR}/build/pack.js" />
- <arg value="${JQ}" />
- <arg value="${JQ_PACK}" />
- </java>
- <echo message="${JQ_PACK} built." />
- </target>\r
-\r
- <target name="pack_with_plugins" depends="jquery_with_plugins" description="Pack jquery with all plugins, not very useful">\r
- <echo message="Building ${JQ_PACK}" />\r
- <java jar="${JAR}" fork="true">\r
- <arg value="${BUILD_DIR}/build/pack.js" />\r
- <arg value="${JQ}" />\r
- <arg value="${JQ_PACK}" />\r
- </java>\r
- <echo message="${JQ_PACK} built." />\r
+ <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." />