]> source.dussan.org Git - jquery.git/commitdiff
Fixed ant build by cloning or pulling qunit and sizzle submodules, similar to the...
authorunknown <JZA@.(none)>
Tue, 8 Dec 2009 21:03:22 +0000 (22:03 +0100)
committerunknown <JZA@.(none)>
Tue, 8 Dec 2009 21:03:22 +0000 (22:03 +0100)
build.xml

index 4e8fcbb0bd8311eb6e21693b720627cd5a2553a9..22d6a0cfd4affd8e58aa78554acf0a3c6166a1c5 100644 (file)
--- a/build.xml
+++ b/build.xml
     <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://github.com/jquery/qunit.git test/qunit"/>  
+               </exec>
+               <echo message="git clone qunit: ${git-qunit}" />
+       </target>
+       <target name="qunit-pull" if="qunit">
+               <exec executable="git" outputproperty="git-qunit" dir="test/qunit" >  
+                       <arg line="pull origin master"/>  
+               </exec> 
+               <echo message="git pull sizzle: ${git-qunit}" />
+       </target>
+       <target name="sizzle-clone" unless="sizzle">
+               <exec executable="git" outputproperty="git-sizzle" >  
+                       <arg line="clone git://github.com/jeresig/sizzle.git src/sizzle"/>  
+               </exec> 
+               <echo message="git clone sizzle: ${git-sizzle}" />
+       </target>
+       <target name="sizzle-pull" if="sizzle">
+               <exec executable="git" outputproperty="git-sizzle" dir="src/sizzle" >  
+                       <arg line="pull origin master"/>  
+               </exec> 
+               <echo message="git pull sizzle: ${git-sizzle}" />
+       </target>
 
-    <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" />