Skip to content

Commit fc3fe67

Browse files
Set JVM system property to avoid Nashorn engine deprecation warning
1 parent 1a12eff commit fc3fe67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/engines/EmbeddedJmeterEngine.java

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ public TestPlanStats run(DslTestPlan testPlan) throws IOException {
9494
}
9595

9696
protected TestPlanStats runInEnv(DslTestPlan testPlan, JmeterEnvironment env) throws IOException {
97+
// Avoid warning in java 11
98+
System.setProperty("nashorn.args", "--no-deprecation-warning");
9799
Properties jmeterProps = JMeterUtils.getJMeterProperties();
98100
if (propsFile != null) {
99101
try (FileInputStream is = new FileInputStream(propsFile)) {

0 commit comments

Comments
 (0)