Skip to content

Commit 395bc8d

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

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

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

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
@SuppressWarnings("unused")
12+
public abstract class CleanInvocationTask extends AllCoordinatesExecTask {
13+
14+
@Override
15+
public List<String> commandFor(String coordinates) {
16+
return List.of(
17+
tckExtension.getRepoRoot().get().getAsFile().toPath().resolve("gradlew").toString(),
18+
"clean"
19+
);
20+
}
21+
22+
@Override
23+
protected String errorMessageFor(String coordinates, int exitCode) {
24+
return "Clean task failed";
25+
}
26+
}

0 commit comments

Comments
 (0)