Skip to content
Newer
Older
100644 108 lines (97 sloc) 4.18 KB
ba9c14a @jzaefferer added version to all builds; changed current version to 1.2.2-pre - t…
jzaefferer authored Dec 19, 2007
1 <project name="jQuery" default="jquery" basedir=".">
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
2
2f536b3 @jzaefferer core: replaced version.js build script in ant build; wasn't used in m…
jzaefferer authored Jan 18, 2009
3 <loadfile property="version" srcfile="version.txt" />
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored Dec 8, 2009
4 <property description="Folder for jquery and min target" name="dist" value="./dist" />
5
6 <property name="JQ" value="${dist}/jquery.js" />
7 <property name="JQ_MIN" value="${dist}/jquery.min.js" />
8
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, si…
unknown authored Dec 8, 2009
9 <loadfile property="sizzle-exports" srcfile="src/sizzle-jquery.js" />
10
11 <available property="qunit" file="test/qunit" />
12 <available property="sizzle" file="src/sizzle" />
13
14 <target name="qunit-clone" unless="qunit">
15 <exec executable="git" outputproperty="git-qunit" >
16 <arg line="clone git://github.com/jquery/qunit.git test/qunit"/>
17 </exec>
18 <echo message="git clone qunit: ${git-qunit}" />
19 </target>
20 <target name="qunit-pull" if="qunit">
21 <exec executable="git" outputproperty="git-qunit" dir="test/qunit" >
22 <arg line="pull origin master"/>
23 </exec>
24 <echo message="git pull sizzle: ${git-qunit}" />
25 </target>
26 <target name="sizzle-clone" unless="sizzle">
27 <exec executable="git" outputproperty="git-sizzle" >
28 <arg line="clone git://github.com/jeresig/sizzle.git src/sizzle"/>
29 </exec>
30 <echo message="git clone sizzle: ${git-sizzle}" />
31 </target>
32 <target name="sizzle-pull" if="sizzle">
33 <exec executable="git" outputproperty="git-sizzle" dir="src/sizzle" >
34 <arg line="pull origin master"/>
35 </exec>
36 <echo message="git pull sizzle: ${git-sizzle}" />
37 </target>
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
38
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, si…
unknown authored Dec 8, 2009
39 <target name="jquery" depends="qunit-clone,qunit-pull,sizzle-clone,sizzle-pull" description="Main jquery build, concatenates source files and replaces @VERSION">
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
40 <echo message="Building ${JQ}" />
5778a35 Fixed ant build by cloning or pulling qunit and sizzle submodules, si…
unknown authored Dec 8, 2009
41 <copy file="src/sizzle/sizzle.js" tofile="src/selector.js" overwrite="true" />
42 <replaceregexp match="// EXPOSE" replace="${sizzle-exports}" file="src/selector.js" />
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored Dec 8, 2009
43 <mkdir dir="${dist}" />
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
44 <concat destfile="${JQ}">
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored Dec 8, 2009
45 <fileset file="src/intro.js" />
46 <fileset file="src/core.js" />
47 <fileset file="src/support.js" />
48 <fileset file="src/data.js" />
49 <fileset file="src/queue.js" />
8e53f7b @jeresig Fixed typo in logic, also disabled function setters in this case to a…
jeresig authored Jan 12, 2010
50 <fileset file="src/attributes.js" />
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored Dec 8, 2009
51 <fileset file="src/event.js" />
52 <fileset file="src/selector.js" />
53 <fileset file="src/traversing.js" />
54 <fileset file="src/manipulation.js" />
55 <fileset file="src/css.js" />
56 <fileset file="src/ajax.js" />
b70872f @jeresig Renamed the 'fx' module to 'effects'. Should've been done a long time…
jeresig authored Dec 18, 2009
57 <fileset file="src/effects.js" />
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored Dec 8, 2009
58 <fileset file="src/offset.js" />
59 <fileset file="src/dimensions.js" />
60 <fileset file="src/outro.js" />
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
61 </concat>
2f536b3 @jzaefferer core: replaced version.js build script in ant build; wasn't used in m…
jzaefferer authored Jan 18, 2009
62 <replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
cde93dc @jzaefferer core: ant build - add Date and Revision to to header (just like make …
jzaefferer authored Jan 18, 2009
63 <replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
ba9c14a @jzaefferer added version to all builds; changed current version to 1.2.2-pre - t…
jzaefferer authored Dec 19, 2007
64 <echo message="${JQ} built." />
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
65 </target>
66
ba9c14a @jzaefferer added version to all builds; changed current version to 1.2.2-pre - t…
jzaefferer authored Dec 19, 2007
67 <target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip">
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
68 <echo message="Building ${JQ_MIN}" />
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored Dec 8, 2009
69 <apply executable="java" parallel="false" verbose="true" dest="${dist}">
70 <fileset dir="${dist}">
12166e9 @jeresig Changed build.xml to use YUICompressor, fixes #3779.
jeresig authored Jan 4, 2009
71 <include name="jquery.js" />
72 </fileset>
73 <arg line="-jar" />
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and G…
jeresig authored Dec 18, 2009
74 <arg path="build/google-compiler-20091218.jar" />
75 <arg value="--warning_level" />
76 <arg value="QUIET" />
77 <arg value="--js_output_file" />
12166e9 @jeresig Changed build.xml to use YUICompressor, fixes #3779.
jeresig authored Jan 4, 2009
78 <targetfile />
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and G…
jeresig authored Dec 19, 2009
79 <arg value="--js" />
80 <mapper type="glob" from="jquery.js" to="tmpmin" />
12166e9 @jeresig Changed build.xml to use YUICompressor, fixes #3779.
jeresig authored Jan 4, 2009
81 </apply>
3fd62ea @jeresig Switched from using YUI Compressor to Google Compiler. Minified and G…
jeresig authored Dec 19, 2009
82 <concat destfile="${JQ_MIN}">
83 <filelist files="${JQ}, dist/tmpmin"/>
84 <filterchain>
85 <headfilter lines="15"/>
86 </filterchain>
87 </concat>
88 <concat destfile="${JQ_MIN}" append="yes">
89 <filelist files="dist/tmpmin"/>
90 </concat>
91 <delete file="dist/tmpmin"/>
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
92 <echo message="${JQ_MIN} built." />
93 </target>
94
95 <target name="clean">
8d73fbd @jzaefferer Further cleanups on ant build
jzaefferer authored Dec 8, 2009
96 <delete dir="${dist}" />
216477b Removed tabs extra stuff from build file
Klaus Hartl authored Jan 25, 2007
97 </target>
98
f649acd @jzaefferer core: Ant target to generate openAjaxMetadata; uses http://www.exfer.…
jzaefferer authored Jan 14, 2009
99 <target name="openAjaxMetadata">
100 <property name="target" value="openAjaxMetadata-jquery-${version}.xml" />
101 <delete file="dist/jquery-*.xml" />
102 <get src="http://www.exfer.net/jquery/createjQueryXMLDocs.py?version=1.3" dest="${target}" />
103 <xslt includes="${target}" excludes="build.xml" destdir="./dist" style="build/style.xsl" extension=".xml" />
104 <delete file="${target}" />
105 </target>
b9e216c @jeresig Added in a new Ant build script.
jeresig authored Aug 16, 2006
106
107 </project>
Something went wrong with that request. Please try again.