## Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.## This code is free software; you can redistribute it and/or modify it# under the terms of the GNU General Public License version 2 only, as# published by the Free Software Foundation.## This code is distributed in the hope that it will be useful, but WITHOUT# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License# version 2 for more details (a copy is included in the LICENSE file that# accompanied this code).## You should have received a copy of the GNU General Public License version# 2 along with this work; if not, write to the Free Software Foundation,# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.## Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA# or visit www.oracle.com if you need additional information or have any# questions.#application.title=nashorn# location of JDK embedded ASM sourcesjdk.java.base.dir=../jdk/src/java.base/share/classesjdk.asm.src.dir=${jdk.java.base.dir}/jdk/internal/org/objectweb/asm# location of JDK embedded jline sourcesjdk.jline.src.dir=../jdk/src/jdk.internal.le/share/classes# source and target levelsbuild.compiler=modernjavac.source=1.9javac.target=1.9javadoc.option=-tag "implSpec:a:Implementation Requirements:"# nashorn version informationnashorn.version=0.1nashorn.fullversion=0.1nashorn.product.name=Oracle Nashorn# This directory is removed when the project is cleaned:build.dir=buildbuild.classes.dir=${build.dir}/classesbuild.zip=${build.dir}/nashorn.zipbuild.gzip=${build.dir}/nashorn.tar.gznashorn.override.option=\ -Xpatch:jdk.scripting.nashorn=${build.classes.dir}/jdk.scripting.nashorn \ -Xpatch:jdk.scripting.nashorn.shell=${build.classes.dir}/jdk.scripting.nashorn.shell \ -Xpatch:jdk.dynalink=${build.classes.dir}/jdk.dynalink# project directory of <nashorn> ant tasknashorntask.dir=buildtools/nashorntask# nashorn Shell toolnashorn.shell.tool=jdk.nashorn.tools.Shell# nasgen toolnasgen.tool=jdk.nashorn.internal.tools.nasgen.Mainnasgen.module.imports=\ -XaddExports:java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \ -XaddExports:java.base/jdk.internal.org.objectweb.asm.util=ALL-UNNAMED# parallel test runner toolparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner# test classes directorybuild.test.classes.dir=${build.dir}/test/classes# nashorn test jar - internal tests jar and api tests jarnashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jarnashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar# test results directorybuild.test.results.dir=${build.dir}/test/reportsbuild.nosecurity.test.results.dir=${build.dir}/test/nosecurity/reportsbuild.nooptimistic.test.results.dir=${build.dir}/test/nooptimistic/reports# This directory is removed when the project is cleaned:dist.dir=distdynalink.jar=${dist.dir}/dynalink.jarnashorn.jar=${dist.dir}/nashorn.jarjjs.jar=${dist.dir}/jjs.jardist.javadoc.dir=${dist.dir}/javadocdist.nashornapi.javadoc.dir=${dist.javadoc.dir}/nashornapidist.dynalinkapi.javadoc.dir=${dist.javadoc.dir}/dynalinkapi# configuration for java flight recorderrun.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128# test library locationtest.lib=${basedir}${file.separator}test${file.separator}lib# jars refererredfile.reference.testng.jar=${test.lib}${file.separator}testng-6.8.jarfile.reference.jcommander.jar=${test.lib}${file.separator}jcommander-1.27.jarfile.reference.bsh.jar=${test.lib}${file.separator}bsh-2.0b4.jarfile.reference.snakeyaml.jar=${test.lib}${file.separator}snakeyaml-1.6.jarfile.reference.asmtools.jar=${test.lib}${file.separator}asmtools-60.jar# TestNG ant task classpathtestng.ant.classpath=\ ${file.reference.testng.jar}${path.separator}\ ${file.reference.jcommander.jar}${path.separator}\ ${file.reference.bsh.jar}${path.separator}\ ${file.reference.snakeyaml.jar}${path.separator}# Set testng verbose level# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed)# Actually, this is a lie: you can specify -1 and this will put TestNG in# debug mode (no longer slicing off stack traces and all)."testng.verbose=2# TestNG listeners - we want to replace TestNG's own JUnit# reporter, but want everything else provided by default# Unfortunately, we've to clone the other default reporters here.testng.listeners=\ org.testng.reporters.SuiteHTMLReporter, \ org.testng.reporters.TestHTMLReporter, \ org.testng.reporters.jq.Main, \ org.testng.reporters.FailedReporter, \ org.testng.reporters.XMLReporter \ org.testng.reporters.EmailableReporter, \ jdk.nashorn.internal.test.framework.JSJUnitReportReporterjavac.debug=truejavac.encoding=asciijavac.test.classpath=\ ${build.test.classes.dir}${path.separator}\ ${file.reference.testng.jar}${path.separator}\ ${file.reference.jcommander.jar}${path.separator}\ ${file.reference.bsh.jar}${path.separator}\ ${file.reference.snakeyaml.jar}test.module.imports=\ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.ir=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.codegen=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.parser=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.objects=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.doubleconv=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.linker=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.events=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.options=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.regexp=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.regexp.joni=ALL-UNNAMED \ -XaddExports:jdk.scripting.nashorn/jdk.nashorn.tools=ALL-UNNAMED \ -XaddExports:java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMEDmeta.inf.dir=${nashorn.module.src.dir}/META-INFrun.classpath=\ ${build.classes.dir}# test scripts to runtest.dir=testtest.nosecurity.dir=test/script/nosecuritytest.script.dir=test/scripttest.basic.dir=test/script/basictest.maptests.dir=test/script/mapteststest.error.dir=test/script/errortest.sandbox.dir=test/script/sandboxtest.trusted.dir=test/script/trustedtest.external.dir=test/script/externaltest262.dir=${test.external.dir}/test262test262.suite.dir=${test262.dir}/test/suitetestjfx.dir=${test.script.dir}/jfxtestmarkdown.dir=${test.script.dir}/markdowntest-sys-prop.test.dir=${test.dir}test-sys-prop.test.js.roots=${test.basic.dir} ${test.maptests.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}test-sys-prop.test262.suite.dir=${test262.suite.dir}test-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCasestest-sys-prop.test.basic.dir=${test.basic.dir}test-sys-prop.test.external.dir=${test.external.dir}test-sys-prop.test.maptests.dir=${test.maptests.dir}test-sys-prop.test.sandbox.dir=${test.sandbox.dir}test-sys-prop.test.trusted.dir=${test.trusted.dir}test-sys-prop-no-security.test.dir=${test.dir}test-sys-prop-no-security.test.js.roots=${test.nosecurity.dir}# framework root for our script teststest-sys-prop.test.js.framework=${test.script.dir}/assert.jstest-sys-prop-no-security.test.js.framework=${test.script.dir}/assert.js# Control the verbosity of ParserTesttest-sys-prop.parsertest.verbose=false# turn on/off scripting mode for parser teststest-sys-prop.parsertest.scripting=truetest-sys-prop.parserapitest.verbose=false# turn on/off test262 scripts for parser teststest-sys-prop.parsertest.test262=falsetest-sys-prop.parserapitest.test262=false# Control the verbosity of the CompilerTesttest-sys-prop.compilertest.verbose=false# turn on/off scripting mode for compiler teststest-sys-prop.compilertest.scripting=true# turn on/off test262 scripts for compiler teststest-sys-prop.compilertest.test262=false# test directory to be excluded.test-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}# run everything that's js in here, without checking file headers for test annotationstest-sys-prop.test.js.unchecked.dir=${test262.dir}# test root for octaneoctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/# run octane benchmars in separate processes? (recommended)octane-test-sys-prop.separate.process=true# framework root for octaneoctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js# test root for sunspidersunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0.2/# framework root for sunspidersunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js# list of tests to be excludedsunspider-test-sys-prop.test.js.exclude.list=# execute our script tests in shared nashorn context or not?test-sys-prop.test.js.shared.context=false# execute test262 tests in shared nashorn context or not?test262-test-sys-prop.test.js.shared.context=true# test262 test roottest262-test-sys-prop.test.js.roots=${test262.suite.dir}# test262 enable/disable strict mode teststest262-test-sys-prop.test.js.enable.strict.mode=true# file containing test262 tests to be excluded# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml# list of test262 files to be excludedtest262-test-sys-prop.test.js.exclude.list=\ ${test262.suite.dir}/ch07/7.4/S7.4_A6.js \ ${test262.suite.dir}/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js \ ${test262.suite.dir}/ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-170.js # list of test262 test dirs to be excludedtest262-test-sys-prop.test.js.exclude.dir=\ ${test262.suite.dir}/intl402/ \ ${test262.suite.dir}/bestPractice/test262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests# test262 test frameworkstest262-test-sys-prop.test.js.framework=\ --class-cache-size=10 \ --no-java \ --no-typed-arrays \ -timezone=PST \ ${test.script.dir}/test262.js \ ${test262.dir}/test/harness/framework.js \ ${test262.dir}/test/harness/sta.js# testmarkdown test roottestmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir}# execute testmarkdown tests in shared nashorn context or not?testmarkdown-test-sys-prop.test.js.shared.context=false# framework root for markdown script teststestmarkdown-test-sys-prop.test.js.framework=\ ${test.script.dir}${file.separator}markdown.js# testjfx test roottestjfx-test-sys-prop.test.js.roots=${testjfx.dir}# execute testjfx tests in shared nashorn context or not?testjfx-test-sys-prop.test.js.shared.context=false# framework root for our script teststestjfx-test-sys-prop.test.js.framework=\ -fx \ ${test.script.dir}${file.separator}jfx.jsfile.reference.jemmyfx.jar=${test.lib}${file.separator}JemmyFX.jarfile.reference.jemmycore.jar=${test.lib}${file.separator}JemmyCore.jarfile.reference.jemmyawtinput.jar=${test.lib}${file.separator}JemmyAWTInput.jarfile.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jartestjfx.run.test.classpath=\ ${file.reference.jemmyfx.jar}${path.separator}\ ${file.reference.jemmycore.jar}${path.separator}\ ${file.reference.jemmyawtinput.jar}${path.separator}\ ${file.reference.testng.jar}${path.separator}\ ${file.reference.jcommander.jar}${path.separator}\ ${file.reference.bsh.jar}${path.separator}\ ${file.reference.snakeyaml.jar}${path.separator}\ ${nashorn.internal.tests.jar}${path.separator}\ ${nashorn.api.tests.jar}# testjfx VM options for script tests with @fork optiontestjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath}run.test.classpath=\ ${file.reference.testng.jar}${path.separator}\ ${file.reference.jcommander.jar}${path.separator}\ ${file.reference.bsh.jar}${path.separator}\ ${file.reference.snakeyaml.jar}${path.separator}\ ${nashorn.internal.tests.jar}${path.separator}\ ${nashorn.api.tests.jar}dynalink.module.src.dir=src/jdk.dynalink/share/classesdynalink.module.classes.dir=${build.classes.dir}/jdk.dynalinknashorn.module.src.dir=src/jdk.scripting.nashorn/share/classesnashorn.module.classes.dir=${build.classes.dir}/jdk.scripting.nashornnashorn.shell.module.src.dir=src/jdk.scripting.nashorn.shell/share/classesnashorn.shell.module.classes.dir=${build.classes.dir}/jdk.scripting.nashorn.shellsrc.dir=${dynalink.module.src.dir}${path.separator}\ ${nashorn.module.src.dir}${path.separator}\ ${nashorn.shell.module.src.dir}${path.separator}\ ${jdk.jline.src.dir}test.src.dir=test/src# -Xmx is used for all tests, -Xms only for octane benchmarkrun.test.xmx=2Grun.test.xms=2G# uncomment this jfr.args to enable light recordings. the stack needs to be cranked up to 1024 frames,# or everything will as of the now drown in lambda forms and be cut off.##jfr.args=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath="test_suite.jfr",stackdepth=1024 \jfr.args=run.test.user.language=trrun.test.user.country=TRrun.test.jvmargs.common=\ -server \ ${test.module.imports} \ ${nashorn.override.option} \ -Dfile.encoding=UTF-8 \ -Duser.language=${run.test.user.language} \ -Duser.country=${run.test.user.country} \ -Dnashorn.typeInfo.cacheDir=${build.dir}${file.separator}test${file.separator}type_info_cache \ ${jfr.args} \ -XX:+HeapDumpOnOutOfMemoryError# turn on assertions for testsrun.test.jvmargs.main=${run.test.jvmargs.common} -esa -ea# Extra jvmargs that might be useful for debugging# and performance improvements/monitoring## -XX:+UnlockDiagnosticVMOptions## turn off compressed class pointers in metaspace# -XX:-UseCompressedKlassPointers## dump the heap after every GC# -XX:+PrintHeapAtGC## manually set a metaspace size for class data# -XX:ClassMetaspaceSize=300M## print out methods compiled# -XX:+PrintCompilation## print all compiled nmethods with oopmaps and lots of other info# -XX:+PrintNMethods## activate the generic "UseNewCode" flag to test whatever functionality# lies behind it. This is the preferred way to test a, yet flagless,# feature in HotSpot - for example, the uncommon trap placement fix# was hidden behind this flag before it became the default## -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode## Crank up the type profile level to 222, which has some warmup# penalties, but produces much better code for JavaScript, where better# and more intrusive type profiling is required to get rid of# a large amount of unnecessary guard code, that could not otherwise# be eliminated## -XX:TypeProfileLevel=222## Use best known performance options for octanerun.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:TypeProfileLevel=222# Security manager args - make sure that we run with the nashorn.policy that the build createsrun.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${build.dir}/nashorn.policy# VM options for script tests with @fork optiontest-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -cp ${run.test.classpath}# VM options for no-security script tests with @fork option - same as above but without jvmsecurityargstest-sys-prop-no-security.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${run.test.classpath}# path of rhino.jar for benchmarksrhino.dir=rhino.jar=${rhino.dir}/js.jarv8.shell=d8# How many iterations should 'ant octane' run for each# benchmarkoctane.iterations=25# List of octane tests to run, as properties prefixed with# "octane.benchmark." mapping to the benchmark name in# the test harness## Octane tests that are disabled should have their entire line# commented out Tests may be disabled for functionality reasons when# they have bugs or when the runtime doesn't handle them (yet)octane.benchmark.box2d=box2d#octane.benchmark.code-load=code-loadoctane.benchmark.crypto=cryptooctane.benchmark.deltablue=deltablueoctane.benchmark.earley-boyer=earley-boyeroctane.benchmark.gbemu=gbemuoctane.benchmark.navier-stokes=navier-stokesoctane.benchmark.mandreel=mandreeloctane.benchmark.pdfjs=pdfjsoctane.benchmark.raytrace=raytraceoctane.benchmark.regexp=regexpoctane.benchmark.richards=richardsoctane.benchmark.splay=splay#octane.benchmark.typescript=typescript#octane.benchmark.zlib=zlib#path to rhino jar fileoctaneperf-sys-prop.rhino.jar=${rhino.jar}#timeout for performance tests in minutesoctaneperf-sys-prop.timeout.value=10#how many iterations to run sunspider after warmupsunspider.iterations=3000################## code coverage ###################enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.propertiesmake.code.coverage=false#type of codecoverage; one of static or dynamic. Now only dynamic is supportedjcov=dynamic#naming of CC results#NB directory specified in the cc.dir will be cleaned up!!!cc.dir=${basedir}/../Codecoverage_Nashorncc.result.file.name=CC_${jcov}_nashorn.xml#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.propertiesjcov2.lib.dir=${basedir}/../jcov2/libjcov.jar=${jcov2.lib.dir}/jcov.jarcc.include=jdk\.nashorn\.*cc.exclude=jdk\.nashorn\.internal\.scripts\.*cc.dynamic.genereate.template=truecc.template=${cc.dir}/CC_template.xmlcc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}