From 06a2baa8af074030677c4ce23c8d6ea897f8e371 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sun, 20 Aug 2023 16:52:32 -0700 Subject: [PATCH] Added compile directory to default class path. Closes #1 --- src/bld/java/rife/bld/extension/TestNgOperationBuild.java | 2 +- src/main/java/rife/bld/extension/TestNgOperation.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bld/java/rife/bld/extension/TestNgOperationBuild.java b/src/bld/java/rife/bld/extension/TestNgOperationBuild.java index 5456e5d..896d95d 100644 --- a/src/bld/java/rife/bld/extension/TestNgOperationBuild.java +++ b/src/bld/java/rife/bld/extension/TestNgOperationBuild.java @@ -34,7 +34,7 @@ public class TestNgOperationBuild extends Project { public TestNgOperationBuild() { pkg = "rife.bld.extension"; name = "bld-testng"; - version = version(0, 9, 0); + version = version(0, 9, 1, "SNAPSHOT"); javaRelease = 17; downloadSources = true; diff --git a/src/main/java/rife/bld/extension/TestNgOperation.java b/src/main/java/rife/bld/extension/TestNgOperation.java index 7405df1..ec567c9 100644 --- a/src/main/java/rife/bld/extension/TestNgOperation.java +++ b/src/main/java/rife/bld/extension/TestNgOperation.java @@ -124,8 +124,9 @@ protected List executeConstructProcessCommandList() { args.add("-cp"); if (testClasspath.isEmpty()) { - args.add(String.format("%s:%s:%s", Path.of(project.libTestDirectory().getPath(), "*"), - project.buildMainDirectory(), project.buildTestDirectory())); + args.add(String.format("%s:%s:%s:%s", Path.of(project.libTestDirectory().getPath(), "*"), + Path.of(project.libCompileDirectory().getPath(), "*"), project.buildMainDirectory(), + project.buildTestDirectory())); } else { args.add(String.join(":", testClasspath)); }