Skip to content

Commit

Permalink
Added compile directory to default class path. Closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Aug 20, 2023
1 parent 23db34f commit 06a2baa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bld/java/rife/bld/extension/TestNgOperationBuild.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/rife/bld/extension/TestNgOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ protected List<String> 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));
}
Expand Down

0 comments on commit 06a2baa

Please sign in to comment.