make/build.xml

Thu, 23 May 2013 12:01:35 +0200

author
attila
date
Thu, 23 May 2013 12:01:35 +0200
changeset 286
1c1453863ea8
parent 278
b558e19d5de5
child 288
704bc91a0c41
permissions
-rw-r--r--

8015267: Allow conversion of JS arrays to Java List/Deque
Reviewed-by: lagergren, sundar

     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3  Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     6  This code is free software; you can redistribute it and/or modify it
     7  under the terms of the GNU General Public License version 2 only, as
     8  published by the Free Software Foundation.
    10  This code is distributed in the hope that it will be useful, but WITHOUT
    11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    12  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    13  version 2 for more details (a copy is included in the LICENSE file that
    14  accompanied this code).
    16  You should have received a copy of the GNU General Public License version
    17  2 along with this work; if not, write to the Free Software Foundation,
    18  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21  or visit www.oracle.com if you need additional information or have any
    22  questions.
    23 -->
    24 <project name="nashorn" default="test" basedir="..">
    25   <import file="build-nasgen.xml"/>
    26   <import file="build-benchmark.xml"/>
    27   <import file="code_coverage.xml"/>
    30   <target name="init-conditions">
    31     <!-- loading locally defined resources and properties. NB they owerwrite default ones defined later -->
    32     <property file="${user.home}/.nashorn.project.local.properties"/>
    34     <loadproperties srcFile="make/project.properties"/>
    35     <path id="nashorn.ext.path">
    36       <pathelement location="${dist.dir}"/>
    37     </path>
    38     <property name="ext.class.path" value="-Djava.ext.dirs=&quot;${toString:nashorn.ext.path}&quot;"/>
    39     <condition property="svn.executable" value="/usr/local/bin/svn" else="svn">
    40       <available file="/usr/local/bin/svn"/>
    41     </condition>
    42     <condition property="hg.executable" value="/usr/local/bin/hg" else="hg">
    43       <available file="/usr/local/bin/hg"/>
    44     </condition>
    45     <!-- check if testng.jar is avaiable -->
    46     <available property="testng.available" file="${file.reference.testng.jar}"/>
    48 	<!-- enable/disable make code coverage -->
    49 	<condition property="cc.enabled">
    50 		<istrue value="${make.code.coverage}" />
    51 	</condition>
    52   </target>
    54   <target name="init" depends="init-conditions, init-cc">
    56 	<!-- extends jvm args -->
    57 	<property name="run.test.jvmargs" value="${run.test.jvmargs.main}  ${run.test.cc.jvmargs}"/>
    58 	<property name="run.test.jvmargs.octane" value="${run.test.jvmargs.octane.main}  ${run.test.cc.jvmargs}" />
    60     <echo message="run.test.jvmargs=${run.test.jvmargs}"/>
    61     <echo message="run.test.jvmargs.octane=${run.test.jvmargs.octane}"/>
    63   </target>
    65   <target name="prepare" depends="init">
    66     <mkdir dir="${build.dir}"/>
    67     <mkdir dir="${build.classes.dir}"/>
    68     <mkdir dir="${build.classes.dir}/META-INF/services"/>
    69     <mkdir dir="${build.test.classes.dir}"/>
    70     <mkdir dir="${dist.dir}"/>
    71     <mkdir dir="${dist.javadoc.dir}"/>
    72   </target>
    74   <target name="clean" depends="init, clean-nasgen, init-cc-cleanup">
    75     <delete includeemptydirs="true">
    76       <fileset dir="${build.dir}" erroronmissingdir="false"/>
    77     </delete>
    78     <delete dir="${dist.dir}"/>
    79   </target>
    81   <target name="compile" depends="prepare" description="Compiles nashorn">
    82     <javac srcdir="${src.dir}"
    83            destdir="${build.classes.dir}"
    84            classpath="${javac.classpath}"
    85            source="${javac.source}"
    86            target="${javac.target}"
    87            debug="${javac.debug}"
    88            encoding="${javac.encoding}"
    89            includeantruntime="false">
    90       <compilerarg value="-Xlint:unchecked"/>
    91       <compilerarg value="-Xlint:deprecation"/>
    92       <compilerarg value="-XDignore.symbol.file"/>
    93     </javac>
    94     <copy todir="${build.classes.dir}/META-INF/services">
    95        <fileset dir="${meta.inf.dir}/services/"/>
    96     </copy>
    97      <copy todir="${build.classes.dir}/jdk/nashorn/api/scripting/resources">
    98        <fileset dir="${src.dir}/jdk/nashorn/api/scripting/resources/"/>
    99     </copy>
   100     <copy todir="${build.classes.dir}/jdk/nashorn/internal/runtime/resources">
   101        <fileset dir="${src.dir}/jdk/nashorn/internal/runtime/resources/"/>
   102     </copy>
   103     <copy todir="${build.classes.dir}/jdk/nashorn/tools/resources">
   104        <fileset dir="${src.dir}/jdk/nashorn/tools/resources/"/>
   105     </copy>
   106     <copy file="${src.dir}/jdk/internal/dynalink/support/messages.properties" todir="${build.classes.dir}/jdk/internal/dynalink/support"/>
   108     <echo message="full=${nashorn.fullversion}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties"/>
   109     <echo file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true">${line.separator}</echo>
   110     <echo message="release=${nashorn.version}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true"/>
   111   </target>
   113   <target name="jar" depends="compile, run-nasgen, generate-cc-template" description="Creates nashorn.jar">
   114     <jar jarfile="${dist.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge">
   115       <fileset dir="${build.classes.dir}"/>
   116       <manifest>
   117         <attribute name="Archiver-Version" value="n/a"/>
   118         <attribute name="Build-Jdk" value="${java.runtime.version}"/>
   119         <attribute name="Built-By" value="n/a"/>
   120         <attribute name="Created-By" value="Ant jar task"/>
   121         <section name="jdk/nashorn/">
   122           <attribute name="Implementation-Title" value="${nashorn.product.name}"/>
   123           <attribute name="Implementation-Version" value="${nashorn.version}"/>
   124         </section>
   125       </manifest>
   126     </jar>
   127   </target>
   129   <target name="build-fxshell" depends="jar">
   130     <description>Builds the javafx shell.</description>
   131     <mkdir dir="${fxshell.classes.dir}"/>
   132     <javac srcdir="${fxshell.dir}"
   133            destdir="${fxshell.classes.dir}"
   134            classpath="${dist.jar}:${javac.classpath}"
   135            debug="${javac.debug}"
   136            encoding="${javac.encoding}"
   137            includeantruntime="false">
   138     </javac>
   139     <jar jarfile="${fxshell.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge">
   140       <fileset dir="${fxshell.classes.dir}"/>
   141       <manifest>
   142         <attribute name="Archiver-Version" value="n/a"/>
   143         <attribute name="Build-Jdk" value="${java.runtime.version}"/>
   144         <attribute name="Built-By" value="n/a"/>
   145         <attribute name="Created-By" value="Ant jar task"/>
   146         <section name="jdk/nashorn/">
   147           <attribute name="Implementation-Title" value="Oracle Nashorn FXShell"/>
   148           <attribute name="Implementation-Version" value="${nashorn.version}"/>
   149         </section>
   150       </manifest>
   151     </jar>
   152   </target>
   154   <target name="javadoc" depends="prepare">
   155     <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="src/overview.html" windowtitle="${nashorn.product.name} ${nashorn.version}" additionalparam="-quiet" failonerror="true">
   156       <classpath>
   157         <pathelement location="${build.classes.dir}"/>
   158       </classpath>
   159       <fileset dir="${src.dir}" includes="**/*.java"/>
   160       <fileset dir="${jdk.asm.src.dir}" includes="**/*.java"/>
   161       <link href="http://docs.oracle.com/javase/7/docs/api/"/>
   162       <!-- The following tags are used only in ASM sources - just ignore these -->
   163       <tag name="label" description="label tag in ASM sources" enabled="false"/>
   164       <tag name="linked" description="linked tag in ASM sources" enabled="false"/>
   165       <tag name="associates" description="associates tag in ASM sources" enabled="false"/>
   166     </javadoc>
   167   </target>
   169   <!-- generate shell.html for shell tool documentation -->
   170   <target name="shelldoc" depends="jar">
   171     <java classname="${nashorn.shell.tool}" dir="${basedir}" output="${dist.dir}/shell.html" failonerror="true" fork="true">
   172       <jvmarg line="${ext.class.path}"/>
   173       <arg value="-scripting"/>
   174       <arg value="docs/genshelldoc.js"/>
   175     </java>
   176   </target>
   178   <!-- generate all docs -->
   179   <target name="docs" depends="javadoc, shelldoc"/>
   181   <!-- create .zip and .tar.gz for nashorn binaries and scripts. -->
   182   <target name="dist" depends="jar">
   183       <zip destfile="${build.zip}" basedir=".."
   184           excludes="nashorn/bin/*.sh" includes="nashorn/bin/** nashorn/dist/**"/>
   185       <tar destfile="${build.gzip}" basedir=".." compression="gzip"
   186           excludes="nashorn/bin/*.sh" includes="nashorn/bin/** nashorn/dist/**"/>
   187   </target>
   189   <target name="compile-test" depends="compile, run-nasgen" if="testng.available">
   190     <!-- testng task -->
   191     <taskdef name="testng" classname="org.testng.TestNGAntTask"
   192         classpath="${file.reference.testng.jar}"/>
   194     <javac srcdir="${test.src.dir}"
   195            destdir="${build.test.classes.dir}"
   196            classpath="${javac.test.classpath}"
   197            source="${javac.source}"
   198            target="${javac.target}"
   199            debug="${javac.debug}"
   200            encoding="${javac.encoding}"
   201            includeantruntime="false">
   202         <compilerarg line="-extdirs &quot;&quot;"/>
   203     </javac>
   205     <!-- tests that check nashorn internals and internal API -->
   206     <jar jarfile="${nashorn.internal.tests.jar}">
   207       <fileset dir="${build.test.classes.dir}" excludes="**/api/**"/>
   208     </jar>
   210     <!-- tests that check nashorn script engine (jsr-223) API -->
   211     <jar jarfile="${nashorn.api.tests.jar}">
   212       <fileset dir="${build.test.classes.dir}" includes="**/api/**"/>
   213     </jar>
   215   </target>
   217   <target name="generate-policy-file" depends="prepare">
   218     <!-- Generating nashorn.policy file -->
   220     <!-- nashorn internal tests jar requires AllPermission -->
   221     <echo message="grant codeBase &quot;file:/${basedir}/${nashorn.internal.tests.jar}&quot; {" file="${build.dir}/nashorn.policy"/>
   222     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   223     <echo message="    permission java.security.AllPermission;" file="${build.dir}/nashorn.policy" append="true"/>
   224     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   225     <echo message="};" file="${build.dir}/nashorn.policy" append="true"/>
   226     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   228     <!-- TestNG framework jar needs AllPermission -->
   229     <echo message="grant codeBase &quot;file:/${basedir}/${file.reference.testng.jar}&quot; {" file="${build.dir}/nashorn.policy" append="true"/>
   230     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   231     <echo message="    permission java.security.AllPermission;" file="${build.dir}/nashorn.policy" append="true"/>
   232     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   233     <echo message="};" file="${build.dir}/nashorn.policy" append="true"/>
   234     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   236     <!-- AllPermission to test/script/trusted tests -->
   237     <echo message="grant codeBase &quot;file:/${basedir}/test/script/trusted/*&quot; {" file="${build.dir}/nashorn.policy" append="true"/>
   238     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   239     <echo message="    permission java.security.AllPermission;" file="${build.dir}/nashorn.policy" append="true"/>
   240     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   241     <echo message="};" file="${build.dir}/nashorn.policy" append="true"/>
   242     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   244     <echo message="grant codeBase &quot;file:/${basedir}/test/script/basic/*&quot; {" file="${build.dir}/nashorn.policy" append="true"/>
   245     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   246     <!-- test/script/basic .js scripts load other script tests -->
   247     <echo message="    permission java.io.FilePermission &quot;${basedir}/test/script/-&quot;, &quot;read&quot;;" file="${build.dir}/nashorn.policy" append="true"/>
   248     <echo message="    permission java.io.FilePermission &quot;user.dir&quot;, &quot;read&quot;;" file="${build.dir}/nashorn.policy" append="true"/>
   249     <echo message="    permission java.util.PropertyPermission &quot;user.dir&quot;, &quot;read&quot;;" file="${build.dir}/nashorn.policy" append="true"/>
   250     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   251     <!-- test/script/basic .js scripts can read nashorn.test.* properties -->
   252     <echo message="    permission java.util.PropertyPermission &quot;nashorn.test.*&quot;, &quot;read&quot;;" file="${build.dir}/nashorn.policy" append="true"/>
   253     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   254     <echo message="};" file="${build.dir}/nashorn.policy" append="true"/>
   255     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   257     <replace file="${build.dir}/nashorn.policy"><replacetoken>\</replacetoken><replacevalue>/</replacevalue></replace>    <!--hack for Windows - to make URLs with normal path separators -->
   258     <replace file="${build.dir}/nashorn.policy"><replacetoken>//</replacetoken><replacevalue>/</replacevalue></replace>   <!--hack for Unix - to avoid leading // in URLs -->
   260   </target>
   262   <target name="check-external-tests">
   263       <available file="${test.external.dir}/prototype" property="test-sys-prop.external.prototype"/>
   264       <available file="${test.external.dir}/sunspider" property="test-sys-prop.external.sunspider"/>
   265       <available file="${test.external.dir}/underscore" property="test-sys-prop.external.underscore"/>
   266       <available file="${test.external.dir}/octane" property="test-sys-prop.external.octane"/>
   267       <available file="${test.external.dir}/yui" property="test-sys-prop.external.yui"/>
   268       <available file="${test.external.dir}/jquery" property="test-sys-prop.external.jquery"/>
   269       <available file="${test.external.dir}/test262" property="test-sys-prop.external.test262"/>
   270   </target>
   272   <target name="check-testng" unless="testng.available">
   273     <echo message="WARNING: TestNG not available, will not run tests. Please copy testng.jar under test/lib directory."/>
   274   </target>
   276   <target name="test" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   277     <java classname="${nashorn.shell.tool}" fork="true" dir="${test.script.dir}/representations" output="${build.dir}/output1.log" error="${build.dir}/err.log">
   278       <jvmarg line="${ext.class.path}"/>
   279       <jvmarg line="-Dnashorn.fields.dual=true"/>
   280       <arg value="NASHORN-592a.js"/>
   281     </java>
   282     <java classname="${nashorn.shell.tool}" fork="true" dir="${test.script.dir}/representations" output="${build.dir}/output2.log" error="${build.dir}/err.log">
   283       <jvmarg line="${ext.class.path}"/>
   284       <arg value="NASHORN-592a.js"/>
   285     </java>
   286     <condition property="representation-ok">
   287       <filesmatch file1="${build.dir}/output1.log" file2="${build.dir}/output2.log"/>
   288     </condition>
   289     <fail unless="representation-ok">Representation test failed - output differs!</fail>
   290     <fileset id="test.classes" dir="${build.test.classes.dir}">
   291       <include name="**/api/javaaccess/*Test.class"/>
   292       <include name="**/api/scripting/*Test.class"/>
   293       <include name="**/codegen/*Test.class"/>
   294       <include name="**/parser/*Test.class"/>
   295       <include name="**/runtime/*Test.class"/>
   296       <include name="**/runtime/regexp/*Test.class"/>
   297       <include name="**/runtime/regexp/joni/*Test.class"/>
   298       <include name="**/framework/*Test.class"/>
   299     </fileset>
   301     <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes"
   302        verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
   303       <jvmarg line="${ext.class.path}"/>
   304       <jvmarg line="${run.test.jvmargs} ${run.test.jvmsecurityargs}"/>
   305       <propertyset>
   306         <propertyref prefix="test-sys-prop."/>
   307         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   308       </propertyset>
   309       <classpath>
   310           <pathelement path="${run.test.classpath}"/>
   311       </classpath>
   312     </testng>
   313   </target>
   315   <target name="test-basicparallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file">
   316       <!-- use just build.test.classes.dir to avoid referring to TestNG -->
   317       <java classname="${parallel.test.runner}" dir="${basedir}" classpath="${build.test.classes.dir}" failonerror="true" fork="true">
   318       <jvmarg line="${ext.class.path}"/>
   319       <jvmarg line="${run.test.jvmargs} ${run.test.jvmsecurityargs}"/>
   320       <syspropertyset>
   321           <propertyref prefix="test-sys-prop."/>
   322           <mapper type="glob" from="test-sys-prop.*" to="*"/>
   323       </syspropertyset>
   324       </java>
   325   </target>
   327   <target name="test262" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   328     <fileset id="test.classes" dir="${build.test.classes.dir}">
   329        <include name="**/framework/*Test.class"/>
   330     </fileset>
   332     <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes"
   333        verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
   334       <jvmarg line="${ext.class.path}"/>
   335       <jvmarg line="${run.test.jvmargs} ${run.test.jvmsecurityargs}"/>
   336       <propertyset>
   337         <propertyref prefix="test262-test-sys-prop."/>
   338         <mapper from="test262-test-sys-prop.*" to="*" type="glob"/>
   339       </propertyset>
   340       <classpath>
   341           <pathelement path="${run.test.classpath}"/>
   342       </classpath>
   343     </testng>
   344   </target>
   346   <target name="test262parallel" depends="test262-parallel"/>
   348   <target name="test262-parallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   349     <!-- use just build.test.classes.dir to avoid referring to TestNG -->
   350     <java classname="${parallel.test.runner}" dir="${basedir}" fork="true">
   351       <jvmarg line="${ext.class.path}"/>
   352       <jvmarg line="${run.test.jvmargs} ${run.test.jvmsecurityargs}"/>
   353       <classpath>
   354           <pathelement path="${run.test.classpath}"/>
   355       </classpath>
   356       <syspropertyset>
   357           <propertyref prefix="test262-test-sys-prop."/>
   358           <mapper type="glob" from="test262-test-sys-prop.*" to="*"/>
   359       </syspropertyset>
   360     </java>
   361   </target>
   363   <target name="all" depends="test, docs"
   364       description="Build, test and generate docs for nashorn"/>
   366   <target name="run" depends="jar"
   367       description="Run the shell with a sample script">
   368     <java classname="${nashorn.shell.tool}" fork="true" dir="samples">
   369         <jvmarg line="${ext.class.path}"/>
   370         <jvmarg line="${run.test.jvmargs}"/>
   371         <arg value="-dump-on-error"/>
   372         <arg value="test.js"/>
   373     </java>
   374   </target>
   376   <target name="debug" depends="jar"
   377       description="Debug the shell with a sample script">
   378     <java classname="${nashorn.shell.tool}" fork="true" dir="samples">
   379         <jvmarg line="${ext.class.path}"/>
   380         <jvmarg line="${run.test.jvmargs}"/>
   381         <arg value="--print-code"/>
   382         <arg value="--verify-code"/>
   383         <arg value="--print-symbols"/>
   384         <jvmarg value="-Dnashorn.codegen.debug=true"/>
   385         <arg value="test.js"/>
   386     </java>
   387   </target>
   389   <!-- targets to get external script tests -->
   391   <!-- test262 test suite -->
   392   <target name="get-test262" depends="init" unless="${test-sys-prop.external.test262}">
   393     <!-- clone test262 mercurial repo -->
   394     <exec executable="${hg.executable}">
   395        <arg value="clone"/>
   396        <arg value="http://hg.ecmascript.org/tests/test262"/>
   397        <arg value="${test.external.dir}/test262"/>
   398     </exec>
   399   </target>
   400   <target name="update-test262" depends="init" if="${test-sys-prop.external.test262}">
   401     <!-- update test262 mercurial repo -->
   402     <exec executable="${hg.executable}" dir="${test.external.dir}/test262">
   403        <arg value="pull"/>
   404        <arg value="-u"/>
   405     </exec>
   406   </target>
   408   <!-- octane benchmark -->
   409   <target name="get-octane" depends="init" unless="${test-sys-prop.external.octane}">
   410     <!-- checkout octane benchmarks -->
   411     <exec executable="${svn.executable}">
   412        <arg value="--non-interactive"/>
   413        <arg value="--trust-server-cert"/>
   414        <arg value="checkout"/>
   415        <arg value="http://octane-benchmark.googlecode.com/svn/trunk/"/>
   416        <arg value="${test.external.dir}/octane"/>
   417     </exec>
   418   </target>
   419   <target name="update-octane" depends="init" if="${test-sys-prop.external.octane}">
   420     <!-- update octane benchmarks -->
   421     <exec executable="${svn.executable}" dir="${test.external.dir}/octane">
   422        <arg value="--non-interactive"/>
   423        <arg value="--trust-server-cert"/>
   424        <arg value="update"/>
   425     </exec>
   426   </target>
   428   <!-- sunspider benchmark -->
   429   <target name="get-sunspider" depends="init" unless="${test-sys-prop.external.sunspider}">
   430     <!-- checkout sunspider -->
   431     <exec executable="${svn.executable}">
   432        <arg value="--non-interactive"/>
   433        <arg value="--trust-server-cert"/>
   434        <arg value="checkout"/>
   435        <arg value="http://svn.webkit.org/repository/webkit/trunk/PerformanceTests/SunSpider"/>
   436        <arg value="${test.external.dir}/sunspider"/>
   437     </exec>
   438   </target>
   439   <target name="update-sunspider" depends="init" if="${test-sys-prop.external.sunspider}">
   440     <!-- update sunspider -->
   441     <exec executable="${svn.executable}" dir="${test.external.dir}/sunspider">
   442        <arg value="--non-interactive"/>
   443        <arg value="--trust-server-cert"/>
   444        <arg value="update"/>
   445     </exec>
   446   </target>
   448   <!-- get all external test scripts -->
   449   <target name="externals" depends="init, check-external-tests, get-test262, get-octane, get-sunspider">
   450     <!-- make external test dir -->
   451     <mkdir dir="${test.external.dir}"/> 
   453     <!-- jquery -->
   454     <mkdir dir="${test.external.dir}/jquery"/>    
   455     <get src="http://code.jquery.com/jquery-1.7.2.js" dest="${test.external.dir}/jquery" skipexisting="true" ignoreerrors="true"/>
   456     <get src="http://code.jquery.com/jquery-1.7.2.min.js" dest="${test.external.dir}/jquery" skipexisting="true" ignoreerrors="true"/>
   458     <!-- prototype -->
   459     <mkdir dir="${test.external.dir}/prototype"/>    
   460     <get src="http://ajax.googleapis.com/ajax/libs/prototype/1.7.0/prototype.js" dest="${test.external.dir}/prototype" usetimestamp="true" skipexisting="true" ignoreerrors="true"/>
   462     <!-- underscorejs -->
   463     <mkdir dir="${test.external.dir}/underscore"/> 
   464     <get src="http://underscorejs.org/underscore.js" dest="${test.external.dir}/underscore" skipexisting="true" ignoreerrors="true"/>
   465     <get src="http://underscorejs.org/underscore-min.js" dest="${test.external.dir}/underscore" skipexisting="true" ignoreerrors="true"/>
   467     <!-- yui -->
   468     <mkdir dir="${test.external.dir}/yui"/> 
   469     <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
   470     <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
   472   </target>
   474   <!-- update external test suites that are pulled from source control systems -->
   475   <target name="update-externals" depends="init, check-external-tests, update-test262, update-octane, update-sunspider"/>
   477   <!-- run all perf tests -->
   478   <target name="perf" depends="externals, update-externals, sunspider, octane"/>
   480   <!-- run all tests -->
   481   <target name="exit-if-no-testng" depends="init, check-testng" unless="${testng.available}">
   482      <fail message="Exiting.."/>
   483   </target>
   485   <target name="alltests" depends="exit-if-no-testng, externals, update-externals, test, test262parallel, perf"/>
   487 </project>

mercurial