Added compile directory to default class path. Closes #1
This commit is contained in:
parent
23db34f082
commit
06a2baa8af
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -124,8 +124,9 @@ public class TestNgOperation extends AbstractProcessOperation<TestNgOperation> {
|
|||
|
||||
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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue