mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJI-348 unused Gradle parameters dropped
GitOrigin-RevId: 883136e5c8f340d464085872d93b59e0239afdc5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e9fbf524f6
commit
4555440e7b
@@ -21,7 +21,7 @@ final class GradleRunner {
|
||||
String projectDir,
|
||||
BuildMessages messages,
|
||||
BuildOptions options,
|
||||
List<String> additionalParams = getDefaultAdditionalParams()
|
||||
List<String> additionalParams = []
|
||||
) {
|
||||
this.messages = messages
|
||||
this.options = options
|
||||
@@ -51,27 +51,6 @@ final class GradleRunner {
|
||||
return runInner(title, buildFile, false, false, tasks)
|
||||
}
|
||||
|
||||
GradleRunner withParams(List<String> additionalParams) {
|
||||
return new GradleRunner(gradleProjectDir, projectDir, messages, options, this.additionalParams + additionalParams)
|
||||
}
|
||||
|
||||
private static List<String> getDefaultAdditionalParams() {
|
||||
def rawParams = System.getProperty("intellij.gradle.jdk.build.parameters", "")
|
||||
if (rawParams.isEmpty()) {
|
||||
return Collections.emptyList()
|
||||
}
|
||||
|
||||
return Arrays.asList(rawParams.split(" "))
|
||||
}
|
||||
|
||||
boolean runOneTask(String task) {
|
||||
boolean result = runInner(null, false, task)
|
||||
if (!result) {
|
||||
messages.error("Failed to complete `gradle $task`")
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
private boolean runInner(String title, File buildFile, boolean force, boolean parallel, String... tasks) {
|
||||
return messages.block("Gradle $tasks", new Supplier<Boolean>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user