Skip to content

Commit 1b59e9d

Browse files
committed
Remove delete question from InteractiveTaskUtils
1 parent 40fb802 commit 1b59e9d

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

tests/tck-build-logic/src/main/java/org/graalvm/internal/tck/ContributionTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private void createStubs(boolean shouldUpdate){
285285
}
286286
}
287287

288-
private void updateAllowedPackages(List<String> allowedPackages, boolean isAlreadyExistingLibrary) throws IOException {
288+
private void updateAllowedPackages(List<String> allowedPackages, boolean libraryAlreadyExists) throws IOException {
289289
InteractiveTaskUtils.printUserInfo("Updating allowed packages in: " + METADATA_INDEX);
290290
File metadataIndex = getProject().file(METADATA_INDEX);
291291

@@ -301,7 +301,7 @@ private void updateAllowedPackages(List<String> allowedPackages, boolean isAlrea
301301
Set<String> extendedAllowedPackages = new HashSet<>();
302302
MetadataIndexEntry replacedEntry = entries.remove(replaceEntryIndex);
303303

304-
if (isAlreadyExistingLibrary) {
304+
if (libraryAlreadyExists) {
305305
// we don't want to break existing tests, so we must add existing allowed packages
306306
extendedAllowedPackages.addAll(replacedEntry.allowedPackages());
307307
}

tests/tck-build-logic/src/main/java/org/graalvm/internal/tck/utils/InteractiveTaskUtils.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.graalvm.internal.tck.utils;
22

3-
import java.nio.file.Path;
43
import java.util.Scanner;
54
import java.util.function.Function;
65

@@ -53,15 +52,6 @@ public static boolean askYesNoQuestion(String question, String helpMessage, bool
5352
}
5453
}
5554

56-
public static boolean askForDeletePermission(Path file) {
57-
String question = "The contributing task would like to delete following file: " + file +
58-
". If this file is not generated by the task, please report the error on the metadata repository. " +
59-
"Do you confirm that contributing task can delete this file? [y/N]";
60-
String help = "The task should only remove dummy files generated in the previous step. Please verify that the following file can be removed: " + file;
61-
62-
return askYesNoQuestion(question, help, false);
63-
}
64-
6555
public static void closeSection() {
6656
ColoredOutput.println("------------------------------------------------------------------------------------------", ColoredOutput.OUTPUT_COLOR.BLUE);
6757
}

0 commit comments

Comments
 (0)