+
+ <!-- TODO refactor to remove duplication with above -->\r
+ <target name="docs_with_plugins" depends="jquery_with_plugins">\r
+ <echo message="Building Documentation" />\r
+ <delete dir="${DOCS_DIR}" />\r
+ <mkdir dir="${DOCS_DIR}/data" />\r
+ <copy todir="${DOCS_DIR}" file="${BUILD_DIR}/docs/.htaccess" />\r
+ <mkdir dir="${DOCS_DIR}/js" />\r
+ <copy todir="${DOCS_DIR}/js">\r
+ <fileset dir="${BUILD_DIR}/docs/js">\r
+ <include name="**/*.js" />\r
+ </fileset>\r
+ </copy>\r
+ <copy todir="${DOCS_DIR}/style">\r
+ <fileset dir="${BUILD_DIR}/docs/style">\r
+ <include name="**" />\r
+ </fileset>\r
+ </copy>\r
+ <java jar="${JAR}" fork="true">\r
+ <arg value="${BUILD_DIR}/docs/docs.js" />\r
+ <arg value="${JQ}" />\r
+ <arg value="${DOCS_DIR}" />\r
+ </java>\r
+ <echo message="Documentation built." />\r
+ </target>
+
+ <target name="clean">
+ <delete dir="${DOCS_DIR}" />
+ <delete dir="${TEST_DIR}" />
+ <delete dir="${DIST_DIR}" />
+ </target>
+
+ <target name="all" depends="clean,jquery,lite,min,pack,docs,test">
+ <echo message="Build complete." />
+ </target>
+
+ <!-- Extra stuff for Tabs plugin -->
+
+ <property name="TABS" value="${PLUGIN_DIR}/tabs/tabs.js" />
+ <property name="TABS_PACK" value="${DIST_DIR}/jquery.tabs.pack.js" />
+
+ <target name="pack_tabs">\r
+ <echo message="Building ${TABS_PACK}" />\r
+ <mkdir dir="${DIST_DIR}" />\r
+ <java jar="${JAR}" fork="true">\r
+ <arg value="${BUILD_DIR}/build/pack.js" />\r
+ <arg value="${TABS}" />\r
+ <arg value="${TABS_PACK}" />\r
+ </java>\r
+ <echo message="${TABS_PACK} built." />\r