Simplified getting the commit date using git log --pretty. Fixed missing date in...
[jquery.git] / build.xml
index 581d130..ebbcdbe 100644 (file)
--- a/build.xml
+++ b/build.xml
             <fileset file="src/support.js" />
             <fileset file="src/data.js" />
             <fileset file="src/queue.js" />
+            <fileset file="src/attributes.js" />
             <fileset file="src/event.js" />
             <fileset file="src/selector.js" />
             <fileset file="src/traversing.js" />
-            <fileset file="src/attributes.js" />
             <fileset file="src/manipulation.js" />
             <fileset file="src/css.js" />
             <fileset file="src/ajax.js" />
@@ -60,6 +60,9 @@
             <fileset file="src/outro.js" />
         </concat>
        <replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
+               <exec executable="git" outputproperty="date">
+                       <arg line="log -1 --pretty=format:%ad"/>
+               </exec>
                <replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
         <echo message="${JQ} built." />
     </target>
                                <include name="jquery.js" />
                        </fileset>
                        <arg line="-jar" />
-                       <arg path="build/yuicompressor-2.4.2.jar" />
-                       <arg value="--charset" />
-                       <arg value="ANSI" />
-                       <arg value="-o" />
+                       <arg path="build/google-compiler-20091218.jar" />
+                       <arg value="--warning_level" />
+                       <arg value="QUIET" />
+                       <arg value="--js_output_file" />
                        <targetfile />
-                       <mapper type="glob" from="jquery.js" to="jquery.min.js" />
+                       <arg value="--js" />
+                       <mapper type="glob" from="jquery.js" to="tmpmin" />
                </apply>
+               <concat destfile="${JQ_MIN}">
+                       <filelist files="${JQ}, dist/tmpmin"/>
+                       <filterchain>
+                               <headfilter lines="15"/>
+                       </filterchain>
+               </concat>
+               <concat destfile="${JQ_MIN}" append="yes">
+                       <filelist files="dist/tmpmin"/>
+               </concat>
+               <delete file="dist/tmpmin"/>
         <echo message="${JQ_MIN} built." />
     </target>