diff --git a/src/main/java/rife/bld/extension/TestNgOperation.java b/src/main/java/rife/bld/extension/TestNgOperation.java index b4dc366..7405df1 100644 --- a/src/main/java/rife/bld/extension/TestNgOperation.java +++ b/src/main/java/rife/bld/extension/TestNgOperation.java @@ -47,16 +47,15 @@ public class TestNgOperation extends AbstractProcessOperation { /** * The suite packages to run. */ - protected final List packages = new ArrayList<>(); + protected final Set packages = new HashSet<>(); /** * The suites to run. */ - protected final List suites = new ArrayList<>(); + protected final Set suites = new HashSet<>(); /** * The classpath entries used for running tests. */ - protected final List testClasspath = new ArrayList<>(); - private final List args = new ArrayList<>(); + protected final Set testClasspath = new HashSet<>(); private BaseProject project; /** @@ -120,7 +119,7 @@ public class TestNgOperation extends AbstractProcessOperation { options.put("d", Path.of(project.buildDirectory().getPath(), "test-output").toString()); } - args.clear(); + List args = new ArrayList<>(); args.add(javaTool()); args.add("-cp");