smparkes-envjs 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/envjsrb +157 -73
- data/bin/jquery-1.3.2-test.js +11 -4
- data/lib/envjs/env.js +935 -11028
- data/lib/envjs/net/cgi.rb +94 -0
- data/lib/envjs/net/file.rb +4 -4
- data/lib/envjs/runtime.rb +80 -24
- data/test/call-load-test.js +0 -2
- data/test/firebug/errorIcon.png +0 -0
- data/test/firebug/firebug.css +209 -0
- data/test/firebug/firebug.html +23 -0
- data/test/firebug/firebug.js +672 -0
- data/test/firebug/firebugx.js +10 -0
- data/test/firebug/infoIcon.png +0 -0
- data/test/firebug/warningIcon.png +0 -0
- data/test/fixtures/html/events.html +171 -0
- data/test/fixtures/html/iframe1.html +46 -0
- data/test/fixtures/html/iframe1a.html +46 -0
- data/test/fixtures/html/iframe2.html +45 -0
- data/test/fixtures/html/iframe3.html +28 -0
- data/test/fixtures/html/iframeN.html +57 -0
- data/test/fixtures/html/malformed.html +181 -0
- data/test/fixtures/html/scope.html +81 -0
- data/test/fixtures/html/trivial.html +19 -0
- data/test/fixtures/html/with_js.html +26 -0
- data/test/fixtures/images/icon-blue.png +0 -0
- data/test/fixtures/js/external_script.js +1 -0
- data/test/fixtures/js/script.js +1 -0
- data/test/fixtures/js/script_error.js +2 -0
- data/test/html/malformed.html +1 -0
- data/test/index.html +21 -19
- data/test/{primaryTests.js → primary-tests.js} +1 -3
- data/test/{prototype.js → prototype-test.js} +0 -2
- data/test/qunit/qunit/qunit.css +0 -0
- data/test/qunit/qunit/qunit.js +2 -2
- data/test/{qunit/qunit/qunit.js.smp → specs/dist/env.spec.js} +539 -7
- data/test/specs/envjs.spec.css +46 -0
- data/test/specs/parser/html.js +31 -0
- data/test/specs/parser/spec.html +40 -0
- data/test/specs/parser/xml.js +31 -0
- data/test/specs/qunit.bdd.js +210 -0
- data/test/{qunit.smp/qunit → specs}/qunit.css +0 -0
- data/test/{qunit.smp/qunit → specs}/qunit.js +2 -2
- data/test/specs/template/spec-0.js +31 -0
- data/test/specs/template/spec-1.js +31 -0
- data/test/specs/template/spec.html +40 -0
- data/test/specs/window/css.js +23 -0
- data/test/specs/window/dialog.js +25 -0
- data/test/specs/window/document.js +23 -0
- data/test/specs/window/event.js +25 -0
- data/test/specs/window/history.js +34 -0
- data/test/specs/window/location.js +34 -0
- data/test/specs/window/navigator.js +71 -0
- data/test/specs/window/screen.js +42 -0
- data/test/specs/window/spec.html +48 -0
- data/test/specs/window/timer.js +26 -0
- data/test/specs/window/window.js +53 -0
- data/test/specs/xhr/spec.html +47 -0
- data/test/specs/xhr/xhr.js +31 -0
- data/test/test.js +10 -0
- data/test/unit/elementmembers.js +31 -0
- data/test/unit/nu.validator.js +34 -0
- data/test/unit/onload.js +1 -3
- data/test/unit/parser.js +106 -98
- data/test/unit/prototypecompat.js +2 -2
- data/test/vendor/jQuery/1.3.2/ChangeLog.txt +98 -0
- data/test/vendor/jQuery/1.3.2/GPL-LICENSE.txt +278 -0
- data/test/vendor/jQuery/1.3.2/MIT-LICENSE.txt +20 -0
- data/test/vendor/jQuery/1.3.2/Makefile +154 -0
- data/test/vendor/jQuery/1.3.2/README +67 -0
- data/test/vendor/jQuery/1.3.2/build/ant-contrib-0.6.jar +0 -0
- data/test/vendor/jQuery/1.3.2/build/build/min.js +11 -0
- data/test/vendor/jQuery/1.3.2/build/build/pack.js +19 -0
- data/test/vendor/jQuery/1.3.2/build/js/Packer.js +209 -0
- data/test/vendor/jQuery/1.3.2/build/js/ParseMaster.js +106 -0
- data/test/vendor/jQuery/1.3.2/build/js/Words.js +62 -0
- data/test/vendor/jQuery/1.3.2/build/js/base2.js +978 -0
- data/test/vendor/jQuery/1.3.2/build/js/jsmin.js +316 -0
- data/test/vendor/jQuery/1.3.2/build/js/json.js +117 -0
- data/test/vendor/jQuery/1.3.2/build/js/pack.js +316 -0
- data/test/vendor/jQuery/1.3.2/build/js/parse.js +105 -0
- data/test/vendor/jQuery/1.3.2/build/js/writeFile.js +19 -0
- data/test/vendor/jQuery/1.3.2/build/js/xml.js +25 -0
- data/test/vendor/jQuery/1.3.2/build/js.jar +0 -0
- data/test/vendor/jQuery/1.3.2/build/runtest/env.js +1 -0
- data/test/vendor/jQuery/1.3.2/build/runtest/test.js +106 -0
- data/test/vendor/jQuery/1.3.2/build/runtest/testrunner.js +197 -0
- data/test/vendor/jQuery/1.3.2/build/speed/benchmarker.css +65 -0
- data/test/vendor/jQuery/1.3.2/build/speed/benchmarker.js +181 -0
- data/test/vendor/jQuery/1.3.2/build/speed/index.html +72 -0
- data/test/vendor/jQuery/1.3.2/build/speed/jquery-basis.js +3549 -0
- data/test/vendor/jQuery/1.3.2/build/style.xsl +99 -0
- data/test/vendor/jQuery/1.3.2/build/yuicompressor-2.4.2.jar +0 -0
- data/test/vendor/jQuery/1.3.2/build.xml +123 -0
- data/test/vendor/jQuery/1.3.2/dist/jquery.js +4376 -0
- data/test/vendor/jQuery/1.3.2/reminder.txt +3 -0
- data/test/vendor/jQuery/1.3.2/src/ajax.js +541 -0
- data/test/vendor/jQuery/1.3.2/src/core.js +1255 -0
- data/test/vendor/jQuery/1.3.2/src/data.js +145 -0
- data/test/vendor/jQuery/1.3.2/src/dimensions.js +49 -0
- data/test/vendor/jQuery/1.3.2/src/event.js +684 -0
- data/test/vendor/jQuery/1.3.2/src/fx.js +407 -0
- data/test/vendor/jQuery/1.3.2/src/intro.js +13 -0
- data/test/vendor/jQuery/1.3.2/src/offset.js +155 -0
- data/test/vendor/jQuery/1.3.2/src/outro.js +1 -0
- data/test/vendor/jQuery/1.3.2/src/selector.js +1015 -0
- data/test/vendor/jQuery/1.3.2/src/support.js +112 -0
- data/test/vendor/jQuery/1.3.2/test/data/cow.jpg +0 -0
- data/test/vendor/jQuery/1.3.2/test/data/dashboard.xml +11 -0
- data/test/vendor/jQuery/1.3.2/test/data/echoQuery.php +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/iframe.html +8 -0
- data/test/vendor/jQuery/1.3.2/test/data/json.php +9 -0
- data/test/vendor/jQuery/1.3.2/test/data/json_assigned_obj.js +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/json_obj.js +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/jsonp.php +10 -0
- data/test/vendor/jQuery/1.3.2/test/data/name.html +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/name.php +29 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/absolute.html +39 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/body.html +24 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/fixed.html +33 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/relative.html +31 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/scroll.html +39 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/static.html +31 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/table.html +43 -0
- data/test/vendor/jQuery/1.3.2/test/data/params_html.php +12 -0
- data/test/vendor/jQuery/1.3.2/test/data/test.html +7 -0
- data/test/vendor/jQuery/1.3.2/test/data/test.js +3 -0
- data/test/vendor/jQuery/1.3.2/test/data/test.php +7 -0
- data/test/vendor/jQuery/1.3.2/test/data/test2.html +5 -0
- data/test/vendor/jQuery/1.3.2/test/data/test3.html +3 -0
- data/test/vendor/jQuery/1.3.2/test/data/testrunner.js +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/text.php +12 -0
- data/test/vendor/jQuery/1.3.2/test/data/with_fries.xml +25 -0
- data/test/vendor/jQuery/1.3.2/test/index.html +229 -0
- data/test/vendor/jQuery/1.3.2/test/jqenv-1259090275493.html +247 -0
- data/test/vendor/jQuery/1.3.2/test/jqenv-1259091671501.html +247 -0
- data/test/vendor/jQuery/1.3.2/test/jqenv-1259175319655.html +247 -0
- data/test/vendor/jQuery/1.3.2/test/offset.html +28 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/jquery/1.2.1/jquery.js +11 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/jquery/1.2.3/jquery.js +11 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/mootools/1.11/mootools.js +1577 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/prototype/1.6.0.2/prototype.js +4221 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/builder.js +131 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/controls.js +835 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/dragdrop.js +944 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/effects.js +1090 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/scriptaculous.js +51 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/slider.js +278 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/unittest.js +564 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/builder.js +136 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/controls.js +965 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/dragdrop.js +974 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/effects.js +1122 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/scriptaculous.js +58 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/slider.js +275 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/sound.js +55 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/unittest.js +568 -0
- data/test/vendor/jQuery/1.3.2/test/polluted.php +64 -0
- data/test/vendor/jQuery/1.3.2/test/qunit/testrunner.js +780 -0
- data/test/vendor/jQuery/1.3.2/test/qunit/testsuite.css +120 -0
- data/test/vendor/jQuery/1.3.2/test/test.js +41 -0
- data/test/vendor/jQuery/1.3.2/test/unit/ajax.js +856 -0
- data/test/vendor/jQuery/1.3.2/test/unit/core.js +1872 -0
- data/test/vendor/jQuery/1.3.2/test/unit/data.js +160 -0
- data/test/vendor/jQuery/1.3.2/test/unit/dimensions.js +86 -0
- data/test/vendor/jQuery/1.3.2/test/unit/event.js +670 -0
- data/test/vendor/jQuery/1.3.2/test/unit/fx.js +451 -0
- data/test/vendor/jQuery/1.3.2/test/unit/offset.js +173 -0
- data/test/vendor/jQuery/1.3.2/test/unit/selector.js +395 -0
- data/test/vendor/jQuery/1.3.2/test/xhtml.php +5 -0
- data/test/vendor/jQuery/1.3.2/version.txt +1 -0
- metadata +158 -22
- data/lib/envjs/runtime.rb.smp +0 -133
- data/test/envjs-call-load-test.js +0 -5
- data/test/envjs-prototype.js +0 -5
- data/test/qunit/package.json +0 -21
- data/test/qunit/test/index.html +0 -17
- data/test/qunit/test/same.js +0 -1368
- data/test/qunit/test/test.js +0 -136
- data/test/qunit.smp/package.json +0 -21
- data/test/qunit.smp/test/index.html +0 -17
- data/test/qunit.smp/test/same.js +0 -1368
- data/test/qunit.smp/test/test.js +0 -136
- data/test/rhino-call-load-test.js +0 -5
- data/test/rhino-prototype.js +0 -5
- data/test/test-with-envs-jar.js +0 -8
- data/test/test-with-rhino-jar.js +0 -9
@@ -0,0 +1,99 @@
|
|
1
|
+
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
3
|
+
|
4
|
+
<xsl:output method="xml" indent="yes" />
|
5
|
+
|
6
|
+
<!-- TODO convert @type array notation to bracket notation, eg. Array<DOMElement> to [DOMElement] -->
|
7
|
+
<xsl:template match="/*">
|
8
|
+
<api xmlns="http://openajax.org/metadata">
|
9
|
+
<class name="jQuery">
|
10
|
+
<constructors>
|
11
|
+
<xsl:for-each select="//function[@name='jQuery']">
|
12
|
+
<constructor>
|
13
|
+
<shortDescription><xsl:value-of select="desc" /></shortDescription>
|
14
|
+
<description><xsl:value-of select="longdesc" /></description>
|
15
|
+
<xsl:call-template name="parameters" />
|
16
|
+
<returnType datatype="{@return}" />
|
17
|
+
<xsl:call-template name="examples" />
|
18
|
+
</constructor>
|
19
|
+
</xsl:for-each>
|
20
|
+
</constructors>
|
21
|
+
<properties>
|
22
|
+
<xsl:for-each select="//property">
|
23
|
+
<xsl:sort select="translate(@name,'$.','')"/>
|
24
|
+
<xsl:sort select="count(params)"/>
|
25
|
+
<property name="{@name}" readonly="true" datatype="{@return}" default="">
|
26
|
+
<xsl:call-template name="scope" />
|
27
|
+
<shortDescription><xsl:value-of select="desc" /></shortDescription>
|
28
|
+
<description><xsl:value-of select="longdesc" /></description>
|
29
|
+
<xsl:call-template name="examples" />
|
30
|
+
</property>
|
31
|
+
</xsl:for-each>
|
32
|
+
</properties>
|
33
|
+
<methods>
|
34
|
+
<xsl:for-each select="//function[@name!='jQuery']">
|
35
|
+
<xsl:sort select="translate(@name,'$.','')"/>
|
36
|
+
<xsl:sort select="count(params)"/>
|
37
|
+
<method name="{@name}">
|
38
|
+
<xsl:call-template name="scope" />
|
39
|
+
<shortDescription><xsl:value-of select="desc" /></shortDescription>
|
40
|
+
<description><xsl:value-of select="longdesc" /></description>
|
41
|
+
<xsl:call-template name="parameters" />
|
42
|
+
<returnType datatype="{@return}" />
|
43
|
+
<xsl:call-template name="examples" />
|
44
|
+
</method>
|
45
|
+
</xsl:for-each>
|
46
|
+
</methods>
|
47
|
+
</class>
|
48
|
+
</api>
|
49
|
+
</xsl:template>
|
50
|
+
|
51
|
+
<xsl:template name="scope">
|
52
|
+
<xsl:attribute name="scope">
|
53
|
+
<xsl:choose>
|
54
|
+
<xsl:when test="starts-with(@name, 'jQuery.')">static</xsl:when>
|
55
|
+
<xsl:when test="not(starts-with(@name, 'jQuery.'))">instance</xsl:when>
|
56
|
+
</xsl:choose>
|
57
|
+
</xsl:attribute>
|
58
|
+
</xsl:template>
|
59
|
+
|
60
|
+
<xsl:template name="parameters">
|
61
|
+
<parameters>
|
62
|
+
<xsl:for-each select="params">
|
63
|
+
<parameter name="{@name}" datatype="{@type}">
|
64
|
+
<xsl:attribute name="usage">
|
65
|
+
<xsl:choose>
|
66
|
+
<xsl:when test="not(@optional)">required</xsl:when>
|
67
|
+
<xsl:when test="@optional">optional</xsl:when>
|
68
|
+
</xsl:choose>
|
69
|
+
</xsl:attribute>
|
70
|
+
<description><xsl:value-of select="desc" /></description>
|
71
|
+
<!-- TODO part of the spec, but with a very different interpretation -->
|
72
|
+
<xsl:choose>
|
73
|
+
<xsl:when test="../option">
|
74
|
+
<properties>
|
75
|
+
<xsl:for-each select="../option">
|
76
|
+
<property name="{@name}" datatype="{@type}" default="{@default}">
|
77
|
+
<description><xsl:value-of select="desc" /></description>
|
78
|
+
</property>
|
79
|
+
</xsl:for-each>
|
80
|
+
</properties>
|
81
|
+
</xsl:when>
|
82
|
+
</xsl:choose>
|
83
|
+
</parameter>
|
84
|
+
</xsl:for-each>
|
85
|
+
</parameters>
|
86
|
+
</xsl:template>
|
87
|
+
|
88
|
+
<xsl:template name="examples">
|
89
|
+
<examples>
|
90
|
+
<xsl:for-each select="example">
|
91
|
+
<example>
|
92
|
+
<description><xsl:value-of select="desc" /></description>
|
93
|
+
<xsl:copy-of select="code|html|css" />
|
94
|
+
</example>
|
95
|
+
</xsl:for-each>
|
96
|
+
</examples>
|
97
|
+
</xsl:template>
|
98
|
+
|
99
|
+
</xsl:stylesheet>
|
Binary file
|
@@ -0,0 +1,123 @@
|
|
1
|
+
<project name="jQuery" default="jquery" basedir=".">
|
2
|
+
|
3
|
+
<!--
|
4
|
+
To get jQuery even smaller, remove the modules you don't need by removing the fileset elements
|
5
|
+
in the jquery-target, for example leaving only these:
|
6
|
+
|
7
|
+
<fileset dir="${SRC_DIR}" includes="intro.js" />
|
8
|
+
<fileset dir="${SRC_DIR}" includes="core.js" />
|
9
|
+
<fileset dir="${SRC_DIR}" includes="selector.js" />
|
10
|
+
<fileset dir="${SRC_DIR}" includes="event.js" />
|
11
|
+
<fileset dir="${SRC_DIR}" includes="outro.js" />
|
12
|
+
|
13
|
+
That'd remove ajax, fx and offset support, leaving basic selectors, manipulation and event handling.
|
14
|
+
-->
|
15
|
+
|
16
|
+
<!-- SETUP -->
|
17
|
+
|
18
|
+
<property description="Source Folder" name="SRC_DIR" value="src" />
|
19
|
+
<property description="Files for parsing etc." name="BUILD_DIR" value="build" />
|
20
|
+
<property description="Rhino JS Engine" name="JAR" value="${BUILD_DIR}/js.jar" />
|
21
|
+
<property description="YUICompressor" name="YUICompressor" value="${BUILD_DIR}/yuicompressor-2.4.2.jar" />
|
22
|
+
<loadfile description="Version to build" property="version" srcfile="version.txt" />
|
23
|
+
|
24
|
+
<property description="Folder for jquery, min, lite and packed target" name="DIST_DIR" value="./dist" />
|
25
|
+
|
26
|
+
<!-- Files names for distribution -->
|
27
|
+
<property name="JQ" value="${DIST_DIR}/jquery.js" />
|
28
|
+
<property name="JQ_LITE" value="${DIST_DIR}/jquery.lite.js" />
|
29
|
+
<property name="JQ_MIN" value="${DIST_DIR}/jquery.min.js" />
|
30
|
+
<property name="JQ_PACK" value="${DIST_DIR}/jquery.pack.js" />
|
31
|
+
<loadfile property="version" srcfile="version.txt" />
|
32
|
+
|
33
|
+
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
34
|
+
<classpath>
|
35
|
+
<pathelement location="build/ant-contrib-0.6.jar"/>
|
36
|
+
</classpath>
|
37
|
+
</taskdef>
|
38
|
+
<exec executable="svn" outputproperty="svnlog.out" >
|
39
|
+
<arg line="info ."/>
|
40
|
+
</exec>
|
41
|
+
<propertyregex property="revision" input="${svnlog.out}" select="\1">
|
42
|
+
<regexp pattern="Revision: ([0-9]*)"/>
|
43
|
+
</propertyregex>
|
44
|
+
<propertyregex property="date" input="${svnlog.out}" select="\1">
|
45
|
+
<regexp pattern="Date: (.+\))"/>
|
46
|
+
</propertyregex>
|
47
|
+
|
48
|
+
<!-- MAIN -->
|
49
|
+
|
50
|
+
<target name="jquery" description="Main jquery build, concatenates source files and replaces @VERSION">
|
51
|
+
<echo message="Building ${JQ}" />
|
52
|
+
<mkdir dir="${DIST_DIR}" />
|
53
|
+
<concat destfile="${JQ}">
|
54
|
+
<fileset dir="${SRC_DIR}" includes="intro.js" />
|
55
|
+
<fileset dir="${SRC_DIR}" includes="core.js" />
|
56
|
+
<fileset dir="${SRC_DIR}" includes="data.js" />
|
57
|
+
<fileset dir="${SRC_DIR}" includes="selector.js" />
|
58
|
+
<fileset dir="${SRC_DIR}" includes="event.js" />
|
59
|
+
<fileset dir="${SRC_DIR}" includes="support.js" />
|
60
|
+
<fileset dir="${SRC_DIR}" includes="ajax.js" />
|
61
|
+
<fileset dir="${SRC_DIR}" includes="fx.js" />
|
62
|
+
<fileset dir="${SRC_DIR}" includes="offset.js" />
|
63
|
+
<fileset dir="${SRC_DIR}" includes="dimensions.js" />
|
64
|
+
<fileset dir="${SRC_DIR}" includes="outro.js" />
|
65
|
+
</concat>
|
66
|
+
<replaceregexp match="@VERSION" replace="${version}" flags="g" byline="true" file="${JQ}" />
|
67
|
+
<replaceregexp match="Date: " replace="Date: ${date}" file="${JQ}" />
|
68
|
+
<replaceregexp match="Revision: " replace="Revision: ${revision}" file="${JQ}" />
|
69
|
+
<echo message="${JQ} built." />
|
70
|
+
</target>
|
71
|
+
|
72
|
+
<target name="min" depends="jquery" description="Remove all comments and whitespace, no compression, great in combination with GZip">
|
73
|
+
<echo message="Building ${JQ_MIN}" />
|
74
|
+
<apply executable="java" parallel="false" verbose="true" dest="${DIST_DIR}">
|
75
|
+
<fileset dir="${DIST_DIR}">
|
76
|
+
<include name="jquery.js" />
|
77
|
+
</fileset>
|
78
|
+
<arg line="-jar" />
|
79
|
+
<arg path="${YUICompressor}" />
|
80
|
+
<arg value="--charset" />
|
81
|
+
<arg value="ANSI" />
|
82
|
+
<arg value="-o" />
|
83
|
+
<targetfile />
|
84
|
+
<mapper type="glob" from="jquery.js" to="jquery.min.js" />
|
85
|
+
</apply>
|
86
|
+
<echo message="${JQ_MIN} built." />
|
87
|
+
</target>
|
88
|
+
|
89
|
+
<target name="pack" depends="jquery" description="Remove all comments and whitespace and compress">
|
90
|
+
<echo message="Building ${JQ_PACK}" />
|
91
|
+
<java jar="${JAR}" fork="true">
|
92
|
+
<arg value="${BUILD_DIR}/build/pack.js" />
|
93
|
+
<arg value="${JQ}" />
|
94
|
+
<arg value="${JQ_PACK}" />
|
95
|
+
</java>
|
96
|
+
<echo message="${JQ_PACK} built." />
|
97
|
+
</target>
|
98
|
+
|
99
|
+
<target name="runtest">
|
100
|
+
<echo message="Running Automated Test Suite" />
|
101
|
+
<java jar="${JAR}" fork="true">
|
102
|
+
<arg value="${BUILD_DIR}/runtest/test.js" />
|
103
|
+
</java>
|
104
|
+
<echo message="Test Suite Finished" />
|
105
|
+
</target>
|
106
|
+
|
107
|
+
<target name="clean">
|
108
|
+
<delete dir="${DIST_DIR}" />
|
109
|
+
</target>
|
110
|
+
|
111
|
+
<target name="all" depends="clean,jquery,min,pack">
|
112
|
+
<echo message="Build complete." />
|
113
|
+
</target>
|
114
|
+
|
115
|
+
<target name="openAjaxMetadata">
|
116
|
+
<property name="target" value="openAjaxMetadata-jquery-${version}.xml" />
|
117
|
+
<delete file="dist/jquery-*.xml" />
|
118
|
+
<get src="http://www.exfer.net/jquery/createjQueryXMLDocs.py?version=1.3" dest="${target}" />
|
119
|
+
<xslt includes="${target}" excludes="build.xml" destdir="./dist" style="build/style.xsl" extension=".xml" />
|
120
|
+
<delete file="${target}" />
|
121
|
+
</target>
|
122
|
+
|
123
|
+
</project>
|