Skip to content

Commit cafd512

Browse files
committed
tck-build-logic: migrate CompileTestJavaInvocationTask from Groovy to Java; preserve task behavior
1 parent 395bc8d commit cafd512

File tree

2 files changed

+29
-24
lines changed

2 files changed

+29
-24
lines changed

tests/tck-build-logic/src/main/groovy/org/graalvm/internal/tck/harness/tasks/CompileTestJavaInvocationTask.groovy

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright and related rights waived via CC0
3+
*
4+
* You should have received a copy of the CC0 legalcode along with this
5+
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
6+
*/
7+
package org.graalvm.internal.tck.harness.tasks;
8+
9+
import java.util.List;
10+
11+
/**
12+
* Task that is used to compile subprojects with javac.
13+
*/
14+
@SuppressWarnings("unused")
15+
public abstract class CompileTestJavaInvocationTask extends AllCoordinatesExecTask {
16+
17+
@Override
18+
public List<String> commandFor(String coordinates) {
19+
return List.of(
20+
tckExtension.getRepoRoot().get().getAsFile().toPath().resolve("gradlew").toString(),
21+
"compileTestJava"
22+
);
23+
}
24+
25+
@Override
26+
protected String errorMessageFor(String coordinates, int exitCode) {
27+
return "Compilation failed";
28+
}
29+
}

0 commit comments

Comments
 (0)