Refactored with_plugins target to reuse jquery target, avoiding duplication

This commit is contained in:
Jörn Zaefferer 2006-10-27 12:32:14 +00:00
parent 83b0e17f3f
commit 4b3b2c1f42

View file

@ -8,6 +8,7 @@
<property name="PLUGIN_DIR" location="../plugins" /> <property name="PLUGIN_DIR" location="../plugins" />
<property name="PLUGINS" value="none" /> <property name="PLUGINS" value="none" />
<property name="PLUGINS_ALL" value="button/*.js,center/*.js,cookie/*.js,form/*.js,greybox/*.js,interface/*.js,pager/*.js,tablesorter/*.js,tabs/*.js" />
<property name="PREFIX" value="." /> <property name="PREFIX" value="." />
<property name="DOCS_DIR" value="${PREFIX}/docs" /> <property name="DOCS_DIR" value="${PREFIX}/docs" />
@ -39,28 +40,11 @@
<echo message="${JQ} built." /> <echo message="${JQ} built." />
</target> </target>
<target name="with_plugins"> <target name="with_plugins" description="Build jquery with all plugins">
<echo message="Building ${JQ}" /> <antcall target="jquery">
<mkdir dir="${DIST_DIR}" /> <param name="PLUGINS" value="${PLUGINS_ALL}" />
<concat destfile="${JQ}"> </antcall>
<fileset dir="${SRC_DIR}" includes="intro.js" /> </target>
<fileset dir="${SRC_DIR}" includes="jquery/*.js" />
<fileset dir="${SRC_DIR}" includes="event/*.js" />
<fileset dir="${SRC_DIR}" includes="fx/*.js" />
<fileset dir="${SRC_DIR}" includes="ajax/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="button/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="center/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="cookie/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="form/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="greybox/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="interface/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="pager/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="tablesorter/*.js" />
<fileset dir="${PLUGIN_DIR}" includes="tabs/*.js" />
<fileset dir="${SRC_DIR}" includes="outro.js" />
</concat>
<echo message="${JQ} built." />
</target>
<target name="lite" depends="jquery"> <target name="lite" depends="jquery">
<echo message="Building ${JQ_LITE}" /> <echo message="Building ${JQ_LITE}" />
@ -175,20 +159,6 @@
<echo message="Build complete." /> <echo message="Build complete." />
</target> </target>
<!-- PLUGINS -->
<target name="ifx" description="Build jquery with Interface fx plugins">
<antcall target="jquery">
<param name="PLUGINS" value="interface/ifx*.js" />
</antcall>
</target>
<target name="cookieFormPager" description="Build jquery with cookie, form and pager plugins">
<antcall target="jquery">
<param name="PLUGINS" value="cookie/*.js,form/*.js,pager/*.js" />
</antcall>
</target>
<target name="pack_tabs"> <target name="pack_tabs">
<echo message="Building ${TABS_PACK}" /> <echo message="Building ${TABS_PACK}" />
<mkdir dir="${DIST_DIR}" /> <mkdir dir="${DIST_DIR}" />