Skip to content

Commit 1cdfd3a

Browse files
committed
tck-build-logic: migrate NativeTestCompileInvocationTask from Groovy to Java; preserve task behavior
1 parent 5428018 commit 1cdfd3a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

tests/tck-build-logic/src/main/groovy/org/graalvm/internal/tck/harness/tasks/NativeTestCompileInvocationTask.groovy renamed to tests/tck-build-logic/src/main/groovy/org/graalvm/internal/tck/harness/tasks/NativeTestCompileInvocationTask.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@
44
* You should have received a copy of the CC0 legalcode along with this
55
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
66
*/
7-
package org.graalvm.internal.tck.harness.tasks
7+
package org.graalvm.internal.tck.harness.tasks;
8+
9+
import java.util.List;
810

911
/**
1012
* Task that is used to compile native tests (Gradle 'nativeTestCompile') on subprojects.
1113
*/
1214
@SuppressWarnings("unused")
13-
abstract class NativeTestCompileInvocationTask extends AllCoordinatesExecTask {
15+
public abstract class NativeTestCompileInvocationTask extends AllCoordinatesExecTask {
1416

1517
@Override
16-
List<String> commandFor(String coordinates) {
17-
return [tckExtension.repoRoot.get().asFile.toPath().resolve("gradlew").toString(), "nativeTestCompile"]
18+
public List<String> commandFor(String coordinates) {
19+
return List.of(
20+
tckExtension.getRepoRoot().get().getAsFile().toPath().resolve("gradlew").toString(),
21+
"nativeTestCompile"
22+
);
1823
}
1924

2025
@Override
2126
protected String errorMessageFor(String coordinates, int exitCode) {
22-
"Native test compilation failed"
27+
return "Native test compilation failed";
2328
}
2429
}

0 commit comments

Comments
 (0)