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() {
|
public TestNgOperationBuild() {
|
||||||
pkg = "rife.bld.extension";
|
pkg = "rife.bld.extension";
|
||||||
name = "bld-testng";
|
name = "bld-testng";
|
||||||
version = version(0, 9, 0);
|
version = version(0, 9, 1, "SNAPSHOT");
|
||||||
|
|
||||||
javaRelease = 17;
|
javaRelease = 17;
|
||||||
downloadSources = true;
|
downloadSources = true;
|
||||||
|
|
|
@ -124,8 +124,9 @@ public class TestNgOperation extends AbstractProcessOperation<TestNgOperation> {
|
||||||
|
|
||||||
args.add("-cp");
|
args.add("-cp");
|
||||||
if (testClasspath.isEmpty()) {
|
if (testClasspath.isEmpty()) {
|
||||||
args.add(String.format("%s:%s:%s", Path.of(project.libTestDirectory().getPath(), "*"),
|
args.add(String.format("%s:%s:%s:%s", Path.of(project.libTestDirectory().getPath(), "*"),
|
||||||
project.buildMainDirectory(), project.buildTestDirectory()));
|
Path.of(project.libCompileDirectory().getPath(), "*"), project.buildMainDirectory(),
|
||||||
|
project.buildTestDirectory()));
|
||||||
} else {
|
} else {
|
||||||
args.add(String.join(":", testClasspath));
|
args.add(String.join(":", testClasspath));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue