- <target name="test" depends="jquery" description="Copy files for the test suite into their own directory.">
- <echo message="Building Test Suite" />
- <delete dir="${TEST_DIR}" />
- <mkdir dir="${TEST_DIR}/data" />
- <copy todir="${TEST_DIR}/data">
- <fileset dir="${BUILD_DIR}/test/data/" />
- </copy>
- <copy todir="${TEST_DIR}" file="${BUILD_DIR}/test/index.html" />
- <echo message="Test Suite built." />
+ <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/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="Date: " replace="Date: ${date}" file="${JQ}" />
+ <echo message="${JQ} built." />