diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-09-23 13:11:19 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2006-09-23 13:11:19 +0000 |
commit | f71726142bfbe20aa6881110759390f5a38183f4 (patch) | |
tree | 47fa616ad3e97dd9a78e7bce479f5a27e6782f89 /build.xml | |
parent | 327bfb88a2ea85a9a30e5f5a1687d9ac399aa3f1 (diff) | |
download | jquery-f71726142bfbe20aa6881110759390f5a38183f4.tar.gz jquery-f71726142bfbe20aa6881110759390f5a38183f4.zip |
Improved jquery target to allow inclusion of plugins directly (specify via the PLUGINS property), making a merge build easier; min/pack work, lite/docs/test ignores content of plugins files
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 35 |
1 files changed, 9 insertions, 26 deletions
@@ -6,8 +6,9 @@ <property name="BUILD_DIR" value="build" /> <property name="JAR" value="${BUILD_DIR}/js.jar" />
- <property name="PLUGIN_DIR" location="../plugins" /> - + <property name="PLUGIN_DIR" location="../plugins" />
+ <property name="PLUGINS" value="" />
+ <property name="PREFIX" value="." /> <property name="DOCS_DIR" value="${PREFIX}/docs" /> <property name="TEST_DIR" value="${PREFIX}/test" /> @@ -17,7 +18,6 @@ <property name="JQ_LITE" value="${DIST_DIR}/jquery.lite.js" /> <property name="JQ_MIN" value="${DIST_DIR}/jquery.min.js" /> <property name="JQ_PACK" value="${DIST_DIR}/jquery.pack.js" />
- <property name="JQ_TEMP" value="${DIST_DIR}/jquery.js.tmp" /> <!-- MAIN -->
@@ -30,6 +30,7 @@ <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="${PLUGINS}" />
<fileset dir="${SRC_DIR}" includes="outro.js" /> </concat> <echo message="${JQ} built." /> @@ -117,33 +118,15 @@ <!-- PLUGINS -->
<target name="ifx" description="Build jquery with Interface fx plugins">
- <antcall target="plugin">
- <param name="plugins" value="interface/ifx*.js" />
+ <antcall target="jquery">
+ <param name="PLUGINS" value="interface/ifx*.js" />
</antcall>
</target>
- <target name="plugindocs" description="Build documentation for a set of plugins - Not working, yet">
- <antcall target="raw">
- <param name="plugins" value="center/*.js, cookie/*.js, form/*.js" />
+ <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>
- <antcall target="docs" />
- </target>
-
- <target name="raw" description="Build a set of plugins, without jquery itself">
- <concat destfile="${JQ}">
- <fileset dir="${PLUGIN_DIR}" includes="${plugins}" />
- </concat>
- <echo message="${plugins} built." />
</target>
-
- <target name="plugin" depends="jquery" description="Build jquery with a given set of plugins, see ifx target for an example">
- <copy tofile="${JQ_TEMP}" file="${JQ}"/>
- <concat destfile="${JQ}">
- <fileset file="${JQ_TEMP}" />
- <fileset dir="${PLUGIN_DIR}" includes="${plugins}" />
- </concat>
- <delete file="${JQ_TEMP}" />
- <echo message="${JQ} with ${plugins} built." />
- </target> </project> |