make/build.xml

Thu, 14 Feb 2013 09:14:31 +0530

author
sundar
date
Thu, 14 Feb 2013 09:14:31 +0530
changeset 87
222b9f32b674
parent 82
abea4ba28901
child 90
5a820fb11814
permissions
-rw-r--r--

8008193: test262 tests should be run with security manager enabled
Reviewed-by: jlaskey

     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="all" basedir="..">
    25   <import file="build-nasgen.xml"/>
    26   <import file="build-benchmark.xml"/>
    28   <target name="init">
    29     <loadproperties srcFile="make/project.properties"/>
    30     <path id="nashorn.ext.path">
    31       <pathelement location="${dist.dir}"/>
    32     </path>
    33     <property name="ext.class.path" value="-Djava.ext.dirs=&quot;${toString:nashorn.ext.path}&quot;"/>
    34     <condition property="svn.executable" value="/usr/local/bin/svn" else="svn">
    35       <available file="/usr/local/bin/svn"/>
    36     </condition>
    37     <condition property="hg.executable" value="/usr/local/bin/hg" else="hg">
    38       <available file="/usr/local/bin/hg"/>
    39     </condition>
    40     <!-- check if JDK already has ASM classes -->
    41     <available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/>
    42     <!-- check if testng.jar is avaiable -->
    43     <available property="testng.available" file="${file.reference.testng.jar}"/>
    44   </target>
    46   <target name="prepare" depends="init">
    47     <mkdir dir="${build.dir}"/>
    48     <mkdir dir="${build.classes.dir}"/>
    49     <mkdir dir="${build.classes.dir}/META-INF/services"/>
    50     <mkdir dir="${build.test.classes.dir}"/>
    51     <mkdir dir="${dist.dir}"/>
    52     <mkdir dir="${dist.javadoc.dir}"/>
    53   </target>
    55   <target name="clean" depends="init, clean-nasgen">
    56     <delete includeemptydirs="true">
    57       <fileset dir="${build.dir}" excludes="${dynalink.dir.name}/**/*" erroronmissingdir="false"/>
    58     </delete>
    59     <delete dir="${dist.dir}"/>
    60   </target>
    62   <target name="clean-dynalink">
    63     <delete dir="${dynalink.dir}"/>
    64   </target>
    66   <target name="clean-all" depends="clean-dynalink, clean">
    67     <delete dir="${build.dir}"/>
    68   </target>
    70   <!-- do it only if ASM is not available -->
    71   <target name="compile-asm" depends="prepare" unless="asm.available">
    72     <javac srcdir="${jdk.asm.src.dir}"
    73            destdir="${build.classes.dir}"
    74            excludes="**/optimizer/* **/xml/* **/attrs/*"
    75            source="${javac.source}"
    76            target="${javac.target}"
    77            debug="${javac.debug}"
    78            encoding="${javac.encoding}"
    79            includeantruntime="false"/>
    80   </target>
    82   <target name="check-dynalink-uptodate" depends="init">
    83     <property name="versioned.dynalink.jar" value="${dynalink.dir}/dynalink-${dynalink.jar.version}.jar"/>
    84     <condition property="dynalink.uptodate">
    85       <and>
    86         <available file="${versioned.dynalink.jar}"/>
    87         <filesmatch file1="${versioned.dynalink.jar}" file2="${dynalink.jar}"/>
    88       </and>
    89     </condition>
    90   </target>
    92   <target name="get-dynalink" depends="check-dynalink-uptodate" unless="dynalink.uptodate">
    93     <mkdir dir="${dynalink.dir}"/>
    94     <!-- Delete previous snapshots, if any -->
    95     <delete>
    96       <fileset dir="${dynalink.dir}" includes="*"/>
    97     </delete>
    98     <property name="dynalink.download.base.url" value="http://oss.sonatype.org/content/repositories/${dynalink.version.type}s/org/dynalang/dynalink/${dynalink.version}/dynalink-${dynalink.jar.version}"/>
    99     <get src="${dynalink.download.base.url}.jar" dest="${versioned.dynalink.jar}" usetimestamp="true"/>
   100     <get src="${dynalink.download.base.url}-sources.jar" dest="${dynalink.dir}/dynalink-sources.jar" usetimestamp="true"/>
   101     <copy file="${versioned.dynalink.jar}" tofile="${dynalink.jar}" overwrite="true"/>
   102   </target>
   104   <target name="compile" depends="compile-asm, get-dynalink" description="Compiles nashorn">
   105     <javac srcdir="${src.dir}"
   106            destdir="${build.classes.dir}"
   107            classpath="${javac.classpath}"
   108            source="${javac.source}"
   109            target="${javac.target}"
   110            debug="${javac.debug}"
   111            encoding="${javac.encoding}"
   112            includeantruntime="false">
   113       <compilerarg value="-Xlint:unchecked"/>
   114       <compilerarg value="-Xlint:deprecation"/>
   115       <compilerarg value="-XDignore.symbol.file"/>
   116     </javac>
   117     <copy todir="${build.classes.dir}/META-INF/services">
   118        <fileset dir="${meta.inf.dir}/services/"/>
   119     </copy>
   120      <copy todir="${build.classes.dir}/jdk/nashorn/api/scripting/resources">
   121        <fileset dir="${src.dir}/jdk/nashorn/api/scripting/resources/"/>
   122     </copy>
   123     <copy todir="${build.classes.dir}/jdk/nashorn/internal/runtime/resources">
   124        <fileset dir="${src.dir}/jdk/nashorn/internal/runtime/resources/"/>
   125     </copy>
   126     <copy todir="${build.classes.dir}/jdk/nashorn/tools/resources">
   127        <fileset dir="${src.dir}/jdk/nashorn/tools/resources/"/>
   128     </copy>
   129     <echo message="full=${nashorn.fullversion}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties"/>
   130     <echo file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true">${line.separator}</echo>
   131     <echo message="release=${nashorn.version}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true"/>
   132   </target>
   134   <target name="jar" depends="compile, run-nasgen" description="Creates nashorn.jar">
   135     <jar jarfile="${dist.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge">
   136       <fileset dir="${build.classes.dir}"/>
   137       <zipfileset src="${dynalink.jar}"/>
   138       <manifest>
   139         <attribute name="Archiver-Version" value="n/a"/>
   140         <attribute name="Build-Jdk" value="${java.runtime.version}"/>
   141         <attribute name="Built-By" value="n/a"/>
   142         <attribute name="Created-By" value="Ant jar task"/>
   143         <section name="jdk/nashorn/">
   144           <attribute name="Implementation-Title" value="${nashorn.product.name}"/>
   145           <attribute name="Implementation-Version" value="${nashorn.version}"/>
   146         </section>
   147       </manifest>
   148     </jar>
   149   </target>
   151   <target name="javadoc" depends="prepare">
   152     <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="src/overview.html" windowtitle="${nashorn.product.name} ${nashorn.version}" additionalparam="-quiet" failonerror="true">
   153       <classpath>
   154         <pathelement location="${build.classes.dir}"/>
   155         <pathelement location="${dynalink.jar}"/>
   156       </classpath>
   157       <fileset dir="${src.dir}" includes="**/*.java"/>
   158       <fileset dir="${jdk.asm.src.dir}" includes="**/*.java"/>
   159       <link href="http://docs.oracle.com/javase/7/docs/api/"/>
   160       <link href="http://szegedi.github.com/dynalink/0.4/javadoc/"/>
   161       <!-- The following tags are used only in ASM sources - just ignore these -->
   162       <tag name="label" description="label tag in ASM sources" enabled="false"/>
   163       <tag name="linked" description="linked tag in ASM sources" enabled="false"/>
   164       <tag name="associates" description="associates tag in ASM sources" enabled="false"/>
   165     </javadoc>
   166   </target>
   168   <!-- generate shell.html for shell tool documentation -->
   169   <target name="shelldoc" depends="jar">
   170     <java classname="${nashorn.shell.tool}" dir="${basedir}" output="${dist.dir}/shell.html" failonerror="true" fork="true">
   171       <jvmarg line="${ext.class.path}"/>
   172       <arg value="-scripting"/>
   173       <arg value="docs/genshelldoc.js"/>
   174     </java>
   175   </target>
   177   <!-- generate all docs -->
   178   <target name="docs" depends="javadoc, shelldoc"/>
   180   <!-- create .zip and .tar.gz for nashorn binaries and scripts. -->
   181   <target name="dist" depends="jar">
   182       <zip destfile="${build.zip}" basedir=".."
   183           excludes="nashorn/bin/*.sh" includes="nashorn/bin/** nashorn/dist/**"/>
   184       <tar destfile="${build.gzip}" basedir=".." compression="gzip"
   185           excludes="nashorn/bin/*.sh" includes="nashorn/bin/** nashorn/dist/**"/>
   186   </target>
   188   <target name="compile-test" depends="compile, run-nasgen" if="testng.available">
   189     <!-- testng task -->
   190     <taskdef name="testng" classname="org.testng.TestNGAntTask"
   191         classpath="${file.reference.testng.jar}"/>
   193     <javac srcdir="${test.src.dir}"
   194            destdir="${build.test.classes.dir}"
   195            classpath="${javac.test.classpath}"
   196            source="${javac.source}"
   197            target="${javac.target}"
   198            debug="${javac.debug}"
   199            encoding="${javac.encoding}"
   200            includeantruntime="false"/>
   202     <!-- tests that check nashorn internals and internal API -->
   203     <jar jarfile="${nashorn.internal.tests.jar}">
   204       <fileset dir="${build.test.classes.dir}" excludes="**/api/*"/>
   205     </jar>
   207     <!-- tests that check nashorn script engine (jsr-223) API -->
   208     <jar jarfile="${nashorn.api.tests.jar}">
   209       <fileset dir="${build.test.classes.dir}" includes="**/api/*"/>
   210     </jar>
   212   </target>
   214   <target name="generate-policy-file">
   215     <!-- Generating nashorn.policy file -->
   217     <!-- nashorn internal tests jar requires AllPermission -->
   218     <echo message="grant codeBase &quot;file:/${basedir}/${nashorn.internal.tests.jar}&quot; {" file="${build.dir}/nashorn.policy"/>
   219     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   220     <echo message="    permission java.security.AllPermission;" file="${build.dir}/nashorn.policy" append="true"/>
   221     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   222     <echo message="};" file="${build.dir}/nashorn.policy" append="true"/>
   223     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   225     <!-- TestNG framework jar needs AllPermission -->
   226     <echo message="grant codeBase &quot;file:/${basedir}/${file.reference.testng.jar}&quot; {" file="${build.dir}/nashorn.policy" append="true"/>
   227     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   228     <echo message="    permission java.security.AllPermission;" file="${build.dir}/nashorn.policy" append="true"/>
   229     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   230     <echo message="};" file="${build.dir}/nashorn.policy" append="true"/>
   231     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   233     <!-- AllPermission to test/script/trusted tests -->
   234     <echo message="grant codeBase &quot;file:/${basedir}/test/script/trusted/*&quot; {" file="${build.dir}/nashorn.policy" append="true"/>
   235     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   236     <echo message="    permission java.security.AllPermission;" file="${build.dir}/nashorn.policy" append="true"/>
   237     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   238     <echo message="};" file="${build.dir}/nashorn.policy" append="true"/>
   239     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   241     <echo message="grant codeBase &quot;file:/${basedir}/test/script/basic/*&quot; {" file="${build.dir}/nashorn.policy" append="true"/>
   242     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   243     <!-- test/script/basic .js scripts load other script tests -->
   244     <echo message="    permission java.io.FilePermission &quot;${basedir}/test/script/-&quot;, &quot;read&quot;;" file="${build.dir}/nashorn.policy" append="true"/>
   245     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   246     <!-- test/script/basic .js scripts can read nashorn.test.* properties -->
   247     <echo message="    permission java.util.PropertyPermission &quot;nashorn.test.*&quot;, &quot;read&quot;;" file="${build.dir}/nashorn.policy" append="true"/>
   248     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   249     <echo message="};" file="${build.dir}/nashorn.policy" append="true"/>
   250     <echo message="" file="${build.dir}/nashorn.policy" append="true"/>
   252     <replace file="${build.dir}/nashorn.policy"><replacetoken>\</replacetoken><replacevalue>/</replacevalue></replace>    <!--hack for Windows - to make URLs with normal path separators -->
   253     <replace file="${build.dir}/nashorn.policy"><replacetoken>//</replacetoken><replacevalue>/</replacevalue></replace>   <!--hack for Unix - to avoid leading // in URLs -->
   255   </target>
   257   <target name="check-external-tests">
   258       <available file="${test.external.dir}/prototype" property="test-sys-prop.external.prototype"/>
   259       <available file="${test.external.dir}/sunspider" property="test-sys-prop.external.sunspider"/>
   260       <available file="${test.external.dir}/underscore" property="test-sys-prop.external.underscore"/>
   261       <available file="${test.external.dir}/octane" property="test-sys-prop.external.octane"/>
   262       <available file="${test.external.dir}/yui" property="test-sys-prop.external.yui"/>
   263       <available file="${test.external.dir}/jquery" property="test-sys-prop.external.jquery"/>
   264       <available file="${test.external.dir}/test262" property="test-sys-prop.external.test262"/>
   265   </target>
   267   <target name="check-testng" unless="testng.available">
   268     <echo message="WARNING: TestNG not available, will not run tests. Please copy testng.jar under test/lib directory."/>
   269   </target>
   271   <target name="test" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   272     <java classname="${nashorn.shell.tool}" fork="true" dir="${test.script.dir}/representations" output="${build.dir}/output1.log" error="${build.dir}/err.log">
   273       <jvmarg line="${ext.class.path}"/>
   274       <jvmarg line="-Dnashorn.fields.dual=true"/>
   275       <arg value="NASHORN-592a.js"/>
   276     </java>
   277     <java classname="${nashorn.shell.tool}" fork="true" dir="${test.script.dir}/representations" output="${build.dir}/output2.log" error="${build.dir}/err.log">
   278       <jvmarg line="${ext.class.path}"/>
   279       <arg value="NASHORN-592a.js"/>
   280     </java>
   281     <condition property="representation-ok">
   282       <filesmatch file1="${build.dir}/output1.log" file2="${build.dir}/output2.log"/>
   283     </condition>
   284     <fail unless="representation-ok">Representation test failed - output differs!</fail>
   285     <fileset id="test.classes" dir="${build.test.classes.dir}">
   286       <include name="**/access/*Test.class"/>
   287       <include name="**/api/scripting/*Test.class"/>
   288       <include name="**/codegen/*Test.class"/>
   289       <include name="**/parser/*Test.class"/>
   290       <include name="**/runtime/*Test.class"/>
   291       <include name="**/framework/*Test.class"/>
   292     </fileset>
   294     <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes"
   295        verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
   296       <jvmarg line="${ext.class.path}"/>
   297       <jvmarg line="${run.test.jvmargs} ${run.test.jvmsecurityargs}"/>
   298       <propertyset>
   299         <propertyref prefix="test-sys-prop."/>
   300         <mapper from="test-sys-prop.*" to="*" type="glob"/>
   301       </propertyset>
   302       <classpath>
   303           <pathelement path="${run.test.classpath}"/>
   304       </classpath>
   305     </testng>
   306   </target>
   308   <target name="test-basicparallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file">
   309       <!-- use just build.test.classes.dir to avoid referring to TestNG -->
   310       <java classname="${parallel.test.runner}" dir="${basedir}" classpath="${build.test.classes.dir}" failonerror="true" fork="true">
   311       <jvmarg line="${ext.class.path}"/>
   312       <jvmarg line="${run.test.jvmargs} ${run.test.jvmsecurityargs}"/>
   313       <syspropertyset>
   314           <propertyref prefix="test-sys-prop."/>
   315           <mapper type="glob" from="test-sys-prop.*" to="*"/>
   316       </syspropertyset>
   317       </java>
   318   </target>
   320   <target name="test262" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   321     <fileset id="test.classes" dir="${build.test.classes.dir}">
   322        <include name="**/framework/*Test.class"/>
   323     </fileset>
   325     <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes"
   326        verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
   327       <jvmarg line="${ext.class.path}"/>
   328       <jvmarg line="${run.test.jvmargs} ${run.test.jvmsecurityargs}"/>
   329       <propertyset>
   330         <propertyref prefix="test262-test-sys-prop."/>
   331         <mapper from="test262-test-sys-prop.*" to="*" type="glob"/>
   332       </propertyset>
   333       <classpath>
   334           <pathelement path="${run.test.classpath}"/>
   335       </classpath>
   336     </testng>
   337   </target>
   339   <target name="test262parallel" depends="test262-parallel"/>
   341   <target name="test262-parallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   342     <!-- use just build.test.classes.dir to avoid referring to TestNG -->
   343     <java classname="${parallel.test.runner}" dir="${basedir}" fork="true">
   344       <jvmarg line="${ext.class.path}"/>
   345       <jvmarg line="${run.test.jvmargs} ${run.test.jvmsecurityargs}"/>
   346       <classpath>
   347           <pathelement path="${run.test.classpath}"/>
   348       </classpath>
   349       <syspropertyset>
   350           <propertyref prefix="test262-test-sys-prop."/>
   351           <mapper type="glob" from="test262-test-sys-prop.*" to="*"/>
   352       </syspropertyset>
   353     </java>
   354   </target>
   356   <target name="all" depends="test, docs"
   357       description="Build, test and generate docs for nashorn"/>
   359   <target name="run" depends="jar"
   360       description="Run the shell with a sample script">
   361     <java classname="${nashorn.shell.tool}" fork="true" dir="samples">
   362         <jvmarg line="${ext.class.path}"/>
   363         <jvmarg line="${run.test.jvmargs}"/>
   364         <arg value="-dump-on-error"/>
   365         <arg value="test.js"/>
   366     </java>
   367   </target>
   369   <target name="debug" depends="jar"
   370       description="Debug the shell with a sample script">
   371     <java classname="${nashorn.shell.tool}" fork="true" dir="samples">
   372         <jvmarg line="${ext.class.path}"/>
   373         <jvmarg line="${run.test.jvmargs}"/>
   374         <arg value="--print-code"/>
   375         <arg value="--verify-code"/>
   376         <arg value="--print-symbols"/>
   377         <jvmarg value="-Dnashorn.codegen.debug=true"/>
   378         <arg value="test.js"/>
   379     </java>
   380   </target>
   382   <!-- targets to get external script tests -->
   384   <!-- test262 test suite -->
   385   <target name="get-test262" depends="init" unless="${test-sys-prop.external.test262}">
   386     <!-- clone test262 mercurial repo -->
   387     <exec executable="${hg.executable}">
   388        <arg value="clone"/>
   389        <arg value="http://hg.ecmascript.org/tests/test262"/>
   390        <arg value="${test.external.dir}/test262"/>
   391     </exec>
   392   </target>
   393   <target name="update-test262" depends="init" if="${test-sys-prop.external.test262}">
   394     <!-- update test262 mercurial repo -->
   395     <exec executable="${hg.executable}" dir="${test.external.dir}/test262">
   396        <arg value="pull"/>
   397        <arg value="-u"/>
   398     </exec>
   399   </target>
   401   <!-- octane benchmark -->
   402   <target name="get-octane" depends="init" unless="${test-sys-prop.external.octane}">
   403     <!-- checkout octane benchmarks -->
   404     <exec executable="${svn.executable}">
   405        <arg value="--non-interactive"/>
   406        <arg value="--trust-server-cert"/>
   407        <arg value="checkout"/>
   408        <arg value="http://octane-benchmark.googlecode.com/svn/trunk/"/>
   409        <arg value="${test.external.dir}/octane"/>
   410     </exec>
   411   </target>
   412   <target name="update-octane" depends="init" if="${test-sys-prop.external.octane}">
   413     <!-- update octane benchmarks -->
   414     <exec executable="${svn.executable}" dir="${test.external.dir}/octane">
   415        <arg value="--non-interactive"/>
   416        <arg value="--trust-server-cert"/>
   417        <arg value="update"/>
   418     </exec>
   419   </target>
   421   <!-- sunspider benchmark -->
   422   <target name="get-sunspider" depends="init" unless="${test-sys-prop.external.sunspider}">
   423     <!-- checkout sunspider -->
   424     <exec executable="${svn.executable}">
   425        <arg value="--non-interactive"/>
   426        <arg value="--trust-server-cert"/>
   427        <arg value="checkout"/>
   428        <arg value="http://svn.webkit.org/repository/webkit/trunk/PerformanceTests/SunSpider"/>
   429        <arg value="${test.external.dir}/sunspider"/>
   430     </exec>
   431   </target>
   432   <target name="update-sunspider" depends="init" if="${test-sys-prop.external.sunspider}">
   433     <!-- update sunspider -->
   434     <exec executable="${svn.executable}" dir="${test.external.dir}/sunspider">
   435        <arg value="--non-interactive"/>
   436        <arg value="--trust-server-cert"/>
   437        <arg value="update"/>
   438     </exec>
   439   </target>
   441   <!-- get all external test scripts -->
   442   <target name="externals" depends="init, check-external-tests, get-test262, get-octane, get-sunspider">
   443     <!-- make external test dir -->
   444     <mkdir dir="${test.external.dir}"/> 
   446     <!-- jquery -->
   447     <mkdir dir="${test.external.dir}/jquery"/>    
   448     <get src="http://code.jquery.com/jquery-1.7.2.js" dest="${test.external.dir}/jquery" skipexisting="true" ignoreerrors="true"/>
   449     <get src="http://code.jquery.com/jquery-1.7.2.min.js" dest="${test.external.dir}/jquery" skipexisting="true" ignoreerrors="true"/>
   451     <!-- prototype -->
   452     <mkdir dir="${test.external.dir}/prototype"/>    
   453     <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"/>
   455     <!-- underscorejs -->
   456     <mkdir dir="${test.external.dir}/underscore"/> 
   457     <get src="http://underscorejs.org/underscore.js" dest="${test.external.dir}/underscore" skipexisting="true" ignoreerrors="true"/>
   458     <get src="http://underscorejs.org/underscore-min.js" dest="${test.external.dir}/underscore" skipexisting="true" ignoreerrors="true"/>
   460     <!-- yui -->
   461     <mkdir dir="${test.external.dir}/yui"/> 
   462     <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
   463     <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
   465   </target>
   467   <!-- update external test suites that are pulled from source control systems -->
   468   <target name="update-externals" depends="init, check-external-tests, update-test262, update-octane, update-sunspider"/>
   470   <!-- run all perf tests -->
   471   <target name="perf" depends="externals, update-externals, sunspider, octane"/>
   473   <!-- run all tests -->
   474   <target name="exit-if-no-testng" depends="init, check-testng" unless="${testng.available}">
   475      <fail message="Exiting.."/>
   476   </target>
   478   <target name="alltests" depends="exit-if-no-testng, externals, update-externals, test, test262parallel, perf"/>
   480 </project>

mercurial