From a5f4151611972df8502464fa96cd0004881bef1d Mon Sep 17 00:00:00 2001 From: Ivan Bessonov Date: Mon, 20 Aug 2018 14:42:10 +0300 Subject: [PATCH] IDEA-CR-36178 maven run anything - command line arguments completion --- .../execution/MavenCommandLineOptions.java | 89 +++++++++++++++++++ .../execution/MavenRunAnythingProvider.java | 53 +++++++---- .../maven/execution/RunAnythingMavenItem.java | 48 ++++++++++ .../MavenRunAnythingProviderTest.java | 19 ++++ 4 files changed, 190 insertions(+), 19 deletions(-) create mode 100644 plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenCommandLineOptions.java create mode 100644 plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/RunAnythingMavenItem.java diff --git a/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenCommandLineOptions.java b/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenCommandLineOptions.java new file mode 100644 index 000000000000..2adaf6f03f4b --- /dev/null +++ b/plugins/maven/src/main/java/org/jetbrains/idea/maven/execution/MavenCommandLineOptions.java @@ -0,0 +1,89 @@ +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +package org.jetbrains.idea.maven.execution; + +import java.util.*; + +/** + * @author ibessonov + */ +public class MavenCommandLineOptions { + + private static final Map ourOptionsIndexMap; + private static final Set