Skip to content
Browse files

Fixed ant build by cloning or pulling qunit and sizzle submodules, si…

…milar to the make build
  • Loading branch information
unknown unknown
unknown authored and unknown committed Dec 8, 2009
1 parent b3acfa5 commit 5778a35abd65673e2eb7f5012868203622c5b105
Showing with 32 additions and 1 deletion.
  1. +32 −1 build.xml
@@ -11,9 +11,40 @@
<property name="JQ_LITE" value="${DIST_DIR}/jquery.lite.js" />
<property name="JQ_MIN" value="${DIST_DIR}/jquery.min.js" />
<loadfile property="version" srcfile="version.txt" />
<loadfile property="sizzle-exports" srcfile="src/sizzle-jquery.js" />

<available property="qunit" file="test/qunit" />
<available property="sizzle" file="src/sizzle" />

<target name="qunit-clone" unless="qunit">
<exec executable="git" outputproperty="git-qunit" >
<arg line="clone git:// test/qunit"/>
<echo message="git clone qunit: ${git-qunit}" />
<target name="qunit-pull" if="qunit">
<exec executable="git" outputproperty="git-qunit" dir="test/qunit" >
<arg line="pull origin master"/>
<echo message="git pull sizzle: ${git-qunit}" />
<target name="sizzle-clone" unless="sizzle">
<exec executable="git" outputproperty="git-sizzle" >
<arg line="clone git:// src/sizzle"/>
<echo message="git clone sizzle: ${git-sizzle}" />
<target name="sizzle-pull" if="sizzle">
<exec executable="git" outputproperty="git-sizzle" dir="src/sizzle" >
<arg line="pull origin master"/>
<echo message="git pull sizzle: ${git-sizzle}" />

<target name="jquery" description="Main jquery build, concatenates source files and replaces @VERSION">
<target name="jquery" depends="qunit-clone,qunit-pull,sizzle-clone,sizzle-pull" description="Main jquery build, concatenates source files and replaces @VERSION">
<echo message="Building ${JQ}" />
<copy file="src/sizzle/sizzle.js" tofile="src/selector.js" overwrite="true" />
<replaceregexp match="// EXPOSE" replace="${sizzle-exports}" file="src/selector.js" />
<mkdir dir="${DIST_DIR}" />
<concat destfile="${JQ}">
<fileset dir="${SRC_DIR}" includes="intro.js" />

0 comments on commit 5778a35

Please sign in to comment.
You can’t perform that action at this time.