core: replaced version.js build script in ant build; wasn't used in make anymore...
[jquery.git] / build.xml
index 7143996..6a6c7ca 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -19,6 +19,7 @@
     <property description="Files for parsing etc." name="BUILD_DIR" value="build" />
     <property description="Rhino JS Engine" name="JAR" value="${BUILD_DIR}/js.jar" />
     <property description="YUICompressor" name="YUICompressor" value="${BUILD_DIR}/yuicompressor-2.4.2.jar" />
+       <loadfile description="Version to build" property="version" srcfile="version.txt" />
 
     <property description="Folder for jquery, min, lite and packed target" name="DIST_DIR" value="./dist" />
 
@@ -27,6 +28,7 @@
     <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" />
+       <loadfile property="version" srcfile="version.txt" />
 
     <!-- MAIN -->
 
             <fileset dir="${SRC_DIR}" includes="dimensions.js" />
             <fileset dir="${SRC_DIR}" includes="outro.js" />
         </concat>
-       <java jar="${JAR}" fork="true">
-            <arg value="${BUILD_DIR}/build/version.js" />
-            <arg value="${JQ}" />
-        </java>
+       <replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
         <echo message="${JQ} built." />
     </target>
 
     <target name="all" depends="clean,jquery,min,pack">
         <echo message="Build complete." />
     </target>
+       
+       <target name="openAjaxMetadata">
+               <property name="target" value="openAjaxMetadata-jquery-${version}.xml" />
+               <delete file="dist/jquery-*.xml" />
+               <get src="http://www.exfer.net/jquery/createjQueryXMLDocs.py?version=1.3" dest="${target}" />
+               <xslt includes="${target}" excludes="build.xml" destdir="./dist" style="build/style.xsl" extension=".xml" />
+               <delete file="${target}" />
+       </target>
 
 </project>