Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 129 lines (114 sloc) 4.813 kb
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
1 <project name="jQuery" default="all" basedir=".">
216477b Removed tabs extra stuff from build file
Klaus Hartl authored
2
2f536b3 @jzaefferer core: replaced version.js build script in ant build; wasn't used in make...
jzaefferer authored
3 <loadfile property="version" srcfile="version.txt" />
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
4 <property name="PREFIX" value="." />
5 <property description="Folder for jquery and min target" name="dist" value="${PREFIX}/dist" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
6
7 <property name="JQ" value="${dist}/jquery.js" />
8 <property name="JQ_MIN" value="${dist}/jquery.min.js" />
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored
9
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, simil...
unknown authored
10 <loadfile property="sizzle-exports" srcfile="src/sizzle-jquery.js" />
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
11
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, simil...
unknown authored
12 <available property="qunit" file="test/qunit" />
13 <available property="sizzle" file="src/sizzle" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
14
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
15 <target name="all" depends="jquery,lint,min" />
16
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, simil...
unknown authored
17 <target name="qunit-clone" unless="qunit">
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
18 <exec executable="git" outputproperty="git-qunit" >
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
19 <arg line="clone git://github.com/jquery/qunit.git test/qunit" />
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, simil...
unknown authored
20 </exec>
21 <echo message="git clone qunit: ${git-qunit}" />
22 </target>
23 <target name="qunit-pull" if="qunit">
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
24 <exec executable="git" outputproperty="git-qunit" dir="test/qunit" >
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
25 <arg line="pull origin master" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
26 </exec>
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, simil...
unknown authored
27 <echo message="git pull sizzle: ${git-qunit}" />
28 </target>
29 <target name="sizzle-clone" unless="sizzle">
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
30 <exec executable="git" outputproperty="git-sizzle" >
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
31 <arg line="clone git://github.com/jeresig/sizzle.git src/sizzle" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
32 </exec>
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, simil...
unknown authored
33 <echo message="git clone sizzle: ${git-sizzle}" />
34 </target>
35 <target name="sizzle-pull" if="sizzle">
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
36 <exec executable="git" outputproperty="git-sizzle" dir="src/sizzle" >
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
37 <arg line="pull origin master" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
38 </exec>
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, simil...
unknown authored
39 <echo message="git pull sizzle: ${git-sizzle}" />
40 </target>
216477b Removed tabs extra stuff from build file
Klaus Hartl authored
41
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
42 <target name="init" depends="qunit-clone,qunit-pull,sizzle-clone,sizzle-pull" />
43
44 <target name="selector" depends="init" description="Builds the selector library for jQuery from Sizzle.">
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
45 <copy file="src/sizzle/sizzle.js" tofile="src/selector.js" overwrite="true" />
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
46 <replaceregexp match="// EXPOSE(.*)&#10;" replace="// EXPOSE\1&#10;${sizzle-exports}" file="src/selector.js" />
47 <replaceregexp match="window.Sizzle(.*)&#10;" replace="" file="src/selector.js" />
48 </target>
49
50 <target name="jquery" depends="init,selector" description="Main jquery build, concatenates source files and replaces @VERSION">
51 <echo message="Building ${JQ}" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
52 <mkdir dir="${dist}" />
53 <concat destfile="${JQ}">
54 <fileset file="src/intro.js" />
55 <fileset file="src/core.js" />
56 <fileset file="src/support.js" />
57 <fileset file="src/data.js" />
58 <fileset file="src/queue.js" />
59 <fileset file="src/attributes.js" />
60 <fileset file="src/event.js" />
61 <fileset file="src/selector.js" />
62 <fileset file="src/traversing.js" />
63 <fileset file="src/manipulation.js" />
64 <fileset file="src/css.js" />
65 <fileset file="src/ajax.js" />
66 <fileset file="src/effects.js" />
67 <fileset file="src/offset.js" />
68 <fileset file="src/dimensions.js" />
69 <fileset file="src/outro.js" />
70 </concat>
71 <replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
4ec1b74 @rdworth Simplified getting the commit date using git log --pretty. Fixed missing...
rdworth authored
72 <exec executable="git" outputproperty="date">
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
73 <arg line="log -1 --pretty=format:%ad" />
4ec1b74 @rdworth Simplified getting the commit date using git log --pretty. Fixed missing...
rdworth authored
74 </exec>
cde93dc @jzaefferer core: ant build - add Date and Revision to to header (just like make bui...
jzaefferer authored
75 <replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
76 <echo message="${JQ} built." />
77 </target>
216477b Removed tabs extra stuff from build file
Klaus Hartl authored
78
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
79 <target name="lint" depends="jquery" description="Check jQuery against JSLint">
80 <exec executable="java">
81 <arg line="-jar build/js.jar build/jslint-check.js" />
82 </exec>
83 </target>
84
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
85 <target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip">
86 <echo message="Building ${JQ_MIN}" />
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored
87 <apply executable="java" parallel="false" verbose="true" dest="${dist}">
88 <fileset dir="${dist}">
12166e9 @jeresig Changed build.xml to use YUICompressor, fixes #3779.
jeresig authored
89 <include name="jquery.js" />
90 </fileset>
91 <arg line="-jar" />
8576570 @jeresig Forgot to update the Rakefile and build.xml files from the previous comm...
jeresig authored
92 <arg path="build/google-compiler-20100917.jar" />
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and Gzip...
jeresig authored
93 <arg value="--warning_level" />
94 <arg value="QUIET" />
95 <arg value="--js_output_file" />
12166e9 @jeresig Changed build.xml to use YUICompressor, fixes #3779.
jeresig authored
96 <targetfile />
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and Gzip...
jeresig authored
97 <arg value="--js" />
98 <mapper type="glob" from="jquery.js" to="tmpmin" />
12166e9 @jeresig Changed build.xml to use YUICompressor, fixes #3779.
jeresig authored
99 </apply>
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and Gzip...
jeresig authored
100 <concat destfile="${JQ_MIN}">
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
101 <filelist files="${JQ}, ${dist}/tmpmin" />
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and Gzip...
jeresig authored
102 <filterchain>
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
103 <headfilter lines="15" />
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and Gzip...
jeresig authored
104 </filterchain>
105 </concat>
106 <concat destfile="${JQ_MIN}" append="yes">
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
107 <filelist files="${dist}/tmpmin" />
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and Gzip...
jeresig authored
108 </concat>
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
109 <delete file="${dist}/tmpmin" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
110 <echo message="${JQ_MIN} built." />
111 </target>
216477b Removed tabs extra stuff from build file
Klaus Hartl authored
112
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
113 <target name="clean">
114 <delete dir="${dist}" />
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
115 <delete file="src/selector.js" />
116 <delete dir="test/qunit" />
117 <delete dir="src/sizzle" />
bb0f1a9 @rdworth Whitespace (spaces to tabs)
rdworth authored
118 </target>
216477b Removed tabs extra stuff from build file
Klaus Hartl authored
119
f649acd @jzaefferer core: Ant target to generate openAjaxMetadata; uses http://www.exfer.net...
jzaefferer authored
120 <target name="openAjaxMetadata">
121 <property name="target" value="openAjaxMetadata-jquery-${version}.xml" />
ef9fb80 @rdworth Fixed ant build to be more consistent with Makefile. Now has all same ta...
rdworth authored
122 <delete file="${dist}/jquery-*.xml" />
f649acd @jzaefferer core: Ant target to generate openAjaxMetadata; uses http://www.exfer.net...
jzaefferer authored
123 <get src="http://www.exfer.net/jquery/createjQueryXMLDocs.py?version=1.3" dest="${target}" />
124 <xslt includes="${target}" excludes="build.xml" destdir="./dist" style="build/style.xsl" extension=".xml" />
125 <delete file="${target}" />
126 </target>
b9e216c @jeresig Added in a new Ant build script.
jeresig authored
127
128 </project>
Something went wrong with that request. Please try again.