project.properties revision 252:fb1d7ea3e1b6
1218893Sdim# 2193323Sed# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 3193323Sed# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4193323Sed# 5193323Sed# This code is free software; you can redistribute it and/or modify it 6193323Sed# under the terms of the GNU General Public License version 2 only, as 7193323Sed# published by the Free Software Foundation. 8193323Sed# 9193323Sed# This code is distributed in the hope that it will be useful, but WITHOUT 10193323Sed# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11193323Sed# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12193323Sed# version 2 for more details (a copy is included in the LICENSE file that 13193323Sed# accompanied this code). 14193323Sed# 15193323Sed# You should have received a copy of the GNU General Public License version 16193323Sed# 2 along with this work; if not, write to the Free Software Foundation, 17193323Sed# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18193323Sed# 19249423Sdim# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20212904Sdim# or visit www.oracle.com if you need additional information or have any 21249423Sdim# questions. 22249423Sdim# 23249423Sdim 24249423Sdimapplication.title=nashorn 25193323Sed 26193323Sed# location of JDK embedded ASM sources 27198090Srdivackyjdk.asm.src.dir=../jdk/src/share/classes/jdk/internal/org/objectweb/asm 28234353Sdim 29249423Sdim# source and target levels 30249423Sdimbuild.compiler=modern 31193323Sedjavac.source=1.7 32198090Srdivackyjavac.target=1.7 33234353Sdim 34198090Srdivacky# nashorn version information 35249423Sdimnashorn.version=0.1 36198396Srdivackynashorn.fullversion=0.1 37193323Sednashorn.product.name=Oracle Nashorn 38193323Sed 39198090Srdivacky# This directory is removed when the project is cleaned: 40198090Srdivackybuild.dir=build 41198090Srdivackybuild.classes.dir=${build.dir}/classes 42198090Srdivackybuild.zip=${build.dir}/nashorn.zip 43198090Srdivackybuild.gzip=${build.dir}/nashorn.tar.gz 44198090Srdivacky 45198090Srdivacky# nashorn Shell tool 46198892Srdivackynashorn.shell.tool=jdk.nashorn.tools.Shell 47199481Srdivacky 48199481Srdivacky# nasgen tool 49193323Sednasgen.tool=jdk.nashorn.internal.tools.nasgen.Main 50199481Srdivacky 51199481Srdivacky# parallel test runner tool 52199481Srdivackyparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner 53199481Srdivacky 54199481Srdivacky# test classes directory 55234353Sdimbuild.test.classes.dir=${build.dir}/test/classes 56234353Sdim# nashorn test jar - internal tests jar and api tests jar 57234353Sdimnashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar 58234353Sdimnashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar 59234353Sdim 60234353Sdim# test results directory 61234353Sdimbuild.test.results.dir=${build.dir}/test/reports 62234353Sdim 63234353Sdim# This directory is removed when the project is cleaned: 64234353Sdimdist.dir=dist 65234353Sdimdist.jar=${dist.dir}/nashorn.jar 66234353Sdimdist.javadoc.dir=${dist.dir}/javadoc 67234353Sdim 68234353Sdim# nashorn javafx shell 69234353Sdimfxshell.tool = jdk.nashorn.tools.FXShell 70234353Sdimfxshell.classes.dir = ${build.dir}/fxshell/classes 71234353Sdimfxshell.dir = tools/fxshell 72193323Sedfxshell.jar = ${dist.dir}/nashornfx.jar 73193323Sed 74193323Sed# jars refererred 75193323Sedfile.reference.testng.jar=test/lib/testng.jar 76193323Sed 77193323Sed# Set testng verbose level 78193323Sed# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 79193323Sed# Actually, this is a lie: you can specify -1 and this will put TestNG in 80193323Sed# debug mode (no longer slicing off stack traces and all)." 81193323Sed 82193323Sedtestng.verbose=2 83193323Sed 84198892Srdivacky# TestNG listeners - we want to replace TestNG's own JUnit 85234353Sdim# reporter, but want everything else provided by default 86234353Sdim# Unfortunately, we've to clone the other default reporters here. 87234353Sdim 88234353Sdimtestng.listeners=\ 89234353Sdim org.testng.reporters.SuiteHTMLReporter, \ 90234353Sdim org.testng.reporters.jq.Main, \ 91239462Sdim org.testng.reporters.FailedReporter, \ 92239462Sdim org.testng.reporters.XMLReporter \ 93239462Sdim org.testng.reporters.EmailableReporter, \ 94239462Sdim jdk.nashorn.internal.test.framework.JSJUnitReportReporter 95239462Sdim 96239462Sdimjavac.debug=true 97234353Sdimjavac.encoding=ascii 98193323Sedjavac.classpath=\ 99234353Sdim ${build.classes.dir} 100234353Sdimjavac.test.classpath=\ 101234353Sdim ${build.classes.dir}:\ 102234353Sdim ${build.test.classes.dir}:\ 103234353Sdim ${file.reference.testng.jar} 104234353Sdim 105193323Sedmeta.inf.dir=${src.dir}/META-INF 106234353Sdim 107234353Sdimrun.classpath=\ 108234353Sdim ${build.classes.dir} 109234353Sdim 110234353Sdim# test scripts to run 111234353Sdimtest.dir=test 112234353Sdimtest.script.dir=test/script 113234353Sdimtest.basic.dir=test/script/basic 114234353Sdimtest.error.dir=test/script/error 115234353Sdimtest.sandbox.dir=test/script/sandbox 116234353Sdimtest.trusted.dir=test/script/trusted 117234353Sdimtest.external.dir=test/script/external 118234353Sdimtest262.dir=${test.external.dir}/test262 119234353Sdimtest262.suite.dir=${test262.dir}/test/suite 120234353Sdim 121234353Sdimtest-sys-prop.test.dir=${test.dir} 122234353Sdimtest-sys-prop.test.js.roots=${test.basic.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir} 123234353Sdimtest-sys-prop.test262.suite.dir=${test262.suite.dir} 124234353Sdimtest-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases 125234353Sdimtest-sys-prop.test.basic.dir=${test.basic.dir} 126234353Sdim 127239462Sdim# framework root for our script tests 128239462Sdimtest-sys-prop.test.js.framework=${test.script.dir}/assert.js 129239462Sdim 130239462Sdim# Control the verbosity of ParserTest 131263508Sdimtest-sys-prop.parsertest.verbose=false 132239462Sdim 133234353Sdim# turn on/off scripting mode for parser tests 134234353Sdimtest-sys-prop.parsertest.scripting=true 135234353Sdim 136234353Sdim# turn on/off test262 scripts for parser tests 137234353Sdimtest-sys-prop.parsertest.test262=false 138234353Sdim 139234353Sdim# Control the verbosity of the CompilerTest 140234353Sdimtest-sys-prop.compilertest.verbose=false 141234353Sdim 142234353Sdim# turn on/off scripting mode for compiler tests 143234353Sdimtest-sys-prop.compilertest.scripting=true 144239462Sdim 145234353Sdim# turn on/off test262 scripts for compiler tests 146234353Sdimtest-sys-prop.compilertest.test262=false 147234353Sdim 148234353Sdim# test directory to be excluded. 149234353Sdimtest-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir} 150234353Sdim 151234353Sdim# run everything that's js in here, without checking file headers for test annotations 152234353Sdimtest-sys-prop.test.js.unchecked.dir=${test262.dir} 153234353Sdim 154234353Sdim# test root for octane 155234353Sdimoctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/ 156234353Sdim 157234353Sdim# run octane benchmars in separate processes? 158234353Sdimoctane-test-sys-prop.separate.process=true 159234353Sdim 160193323Sed# framework root for octane 161193323Sedoctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js 162193323Sed 163193323Sed# list of tests to be excluded 164193323Sed# mandreel excluded due to OOM 165198396Srdivackyoctane-test-sys-prop.test.js.exclude.list=\ 166198396Srdivacky base.js \ 167198396Srdivacky run.js \ 168198396Srdivacky mandreel.js 169198090Srdivacky 170198090Srdivacky# test root for sunspider 171193323Sedsunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0/ 172193323Sed 173198113Srdivacky# framework root for sunspider 174198113Srdivackysunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js 175198113Srdivacky 176198113Srdivacky# list of tests to be excluded 177198113Srdivackysunspider-test-sys-prop.test.js.exclude.list= 178198113Srdivacky 179198113Srdivacky# execute our script tests in shared nashorn context or not? 180198113Srdivackytest-sys-prop.test.js.shared.context=false 181198113Srdivacky 182198113Srdivacky# execute test262 tests in shared nashorn context or not? 183193323Sedtest262-test-sys-prop.test.js.shared.context=true 184193323Sed 185193323Sed# test262 test root 186198113Srdivackytest262-test-sys-prop.test.js.roots=${test262.suite.dir} 187234353Sdim# test262 enable/disable strict mode tests 188193323Sedtest262-test-sys-prop.test.js.enable.strict.mode=true 189234353Sdim 190198090Srdivacky# file containing test262 tests to be excluded 191198090Srdivacky# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml 192234353Sdim 193198090Srdivacky# list of test262 test dirs to be excluded 194198090Srdivackytest262-test-sys-prop.test.js.exclude.dir=\ 195234353Sdim ${test262.suite.dir}/intl402/ 196234353Sdim 197198113Srdivacky# test262 test frameworks 198198113Srdivackytest262-test-sys-prop.test.js.framework=\ 199234353Sdim -timezone=PST \ 200234353Sdim ${test.script.dir}/test262.js \ 201234353Sdim ${test262.dir}/test/harness/framework.js \ 202234353Sdim ${test262.dir}/test/harness/sta.js 203234353Sdim 204234353Sdimrun.test.classpath=\ 205193323Sed ${file.reference.testng.jar}:\ 206193323Sed ${nashorn.internal.tests.jar}:\ 207193323Sed ${nashorn.api.tests.jar} 208193323Sed 209193323Sedsrc.dir=src 210193323Sedtest.src.dir=test/src 211193323Sed 212193323Sedrun.test.xmx=3G 213193323Sedrun.test.xms=2G 214193323Sed 215193323Sed# -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods 216193323Sed# add '-Dtest.js.outofprocess' to run each test in a new sub-process 217193323Sedrun.test.jvmargs.main=-server -Xmx${run.test.xmx} -XX:+TieredCompilation -ea -Dnashorn.debug=true -Dfile.encoding=UTF-8 218193323Sed#-XX:+HeapDumpOnOutOfMemoryError -XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M 219193323Sedrun.test.jvmargs.octane.main=-Xms${run.test.xms} ${run.test.jvmargs.main} 220193323Sed 221193323Sedrun.test.jvmsecurityargs=-Xverify:all -Djava.security.properties=${basedir}/make/java.security.override -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy 222193323Sed 223193323Sed# path of rhino.jar for benchmarks 224193323Sedrhino.jar= 225193323Sed 226193323Sedv8.shell=d8 227193323Sed 228193323Sed#path to rhino jar file 229193323Sedoctaneperf-sys-prop.rhino.jar=${rhino.jar} 230193323Sed 231193323Sed#timeout for performance tests in minutes 232193323Sedoctaneperf-sys-prop.timeout.value=10 233193323Sed 234193323Sed################ 235193323Sed# codecoverage # 236193323Sed################ 237193323Sed #enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties 238193323Sedmake.code.coverage=false 239193323Sed #type of codecoverage; one of static or dynamic. Now only dynamic is supported 240193323Sedjcov=dynamic 241193323Sed #naming of CC results 242193323Sed #NB directory specified in the cc.dir will be cleaned up!!! 243193323Sedcc.dir=${basedir}/../Codecoverage_Nashorn 244193323Sedcc.result.file.name=CC_${jcov}_nashorn.xml 245193323Sed #dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties 246193323Sedjcov2.lib.dir=${basedir}/../jcov2/lib 247193323Sedjcov.jar=${jcov2.lib.dir}/jcov.jar 248193323Sedcc.include=jdk\.nashorn\.* 249193323Sedcc.exclude=jdk\.nashorn\.internal\.scripts\.* 250198090Srdivackycc.dynamic.genereate.template=true 251198090Srdivackycc.template=${cc.dir}/CC_template.xml 252198090Srdivackycc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name} 253193323Sed