- <target name="test" depends="jquery" description="Reads tests from source and compiles into html file, testsuite must be run on a webserver">
- <echo message="Building Test Suite" />
- <delete dir="${TEST_DIR}" />
- <mkdir dir="${TEST_DIR}/data" />\r
- <copy todir="${TEST_DIR}/data">\r
- <fileset dir="${BUILD_DIR}/test/data/" />\r
- </copy>\r
- <java jar="${JAR}" fork="true">
- <arg value="${BUILD_DIR}/test/test.js" />
- <arg value="${JQ}" />
- <arg value="${TEST_DIR}" />
- </java>
- <echo message="Test Suite built." />
- </target>
+ <target name="jquery" description="Main jquery build, concatenates source files and replaces @VERSION">
+ <echo message="Building ${JQ}" />
+ <mkdir dir="${DIST_DIR}" />
+ <concat destfile="${JQ}">
+ <fileset dir="${SRC_DIR}" includes="intro.js" />
+ <fileset dir="${SRC_DIR}" includes="core.js" />
+ <fileset dir="${SRC_DIR}" includes="data.js" />
+ <fileset dir="${SRC_DIR}" includes="selector.js" />
+ <fileset dir="${SRC_DIR}" includes="event.js" />
+ <fileset dir="${SRC_DIR}" includes="support.js" />
+ <fileset dir="${SRC_DIR}" includes="ajax.js" />
+ <fileset dir="${SRC_DIR}" includes="fx.js" />
+ <fileset dir="${SRC_DIR}" includes="offset.js" />
+ <fileset dir="${SRC_DIR}" includes="dimensions.js" />
+ <fileset dir="${SRC_DIR}" includes="outro.js" />
+ </concat>
+ <java jar="${JAR}" fork="true">
+ <arg value="${BUILD_DIR}/build/version.js" />
+ <arg value="${JQ}" />
+ </java>
+ <echo message="${JQ} built." />
+ </target>