Skip to content

Commit

Permalink
Set JVM system property to avoid Nashorn engine deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rabelenda-abstracta committed Oct 16, 2024
1 parent 1a12eff commit fc3fe67
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public TestPlanStats run(DslTestPlan testPlan) throws IOException {
}

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

0 comments on commit fc3fe67

Please sign in to comment.