<project name="jQuery" default="all" basedir=".">\r
- \r
+\r
<!-- SETUP -->
<property name="SRC_DIR" value="src" />
<property name="BUILD_DIR" value="build" />
<property name="JAR" value="${BUILD_DIR}/js.jar" />\r
- \r
+\r
<property name="PLUGIN_DIR" location="../plugins" />\r
<property name="PLUGINS" value="none" />\r
-
+
<property name="PREFIX" value="." />
<property name="DOCS_DIR" value="${PREFIX}/docs" />
<property name="TEST_DIR" value="${PREFIX}/test" />
<property name="JQ_MIN" value="${DIST_DIR}/jquery.min.js" />
<property name="JQ_PACK" value="${DIST_DIR}/jquery.pack.js" />\r
\r
+ <property name="TABS" value="${PLUGIN_DIR}/tabs/tabs.js" />\r
+ <property name="TABS_PACK" value="${DIST_DIR}/jquery.tabs.pack.js" />\r
+\r
<!-- MAIN -->\r
- \r
+\r
<target name="jquery">
<echo message="Building ${JQ}" />
<mkdir dir="${DIST_DIR}" />
<target name="all" depends="clean,jquery,lite,min,pack,docs,test" >
<echo message="Build complete." />
</target>\r
- \r
+\r
<!-- PLUGINS -->\r
- \r
+\r
<target name="ifx" description="Build jquery with Interface fx plugins">\r
<antcall target="jquery">\r
<param name="PLUGINS" value="interface/ifx*.js" />\r
</antcall>\r
</target>\r
- \r
+\r
<target name="cookieFormPager" description="Build jquery with cookie, form and pager plugins">\r
<antcall target="jquery">\r
<param name="PLUGINS" value="cookie/*.js,form/*.js,pager/*.js" />\r
</antcall>\r
</target>\r
+\r
+ <target name="pack_tabs">\r
+ <echo message="Building ${TABS_PACK}" />\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
+ </target>\r
</project>