public enum ShortenCommandLine extends java.lang.Enum<ShortenCommandLine>
Command line has length limit depending on used OS. In order to allow java command lines of any length for any OS, a number of approaches are possible.
Since 2017.3, it's possible to set up a command line shortening method per run configuration,
e.g. com.intellij.execution.application.JvmMainMethodRunConfigurationOptions#getShortenClasspath()
.
Enum Constant and Description |
---|
ARGS_FILE |
CLASSPATH_FILE |
MANIFEST |
NONE |
Modifier and Type | Method and Description |
---|---|
static ShortenCommandLine |
getDefaultMethod(Project project,
java.lang.String rootPath) |
java.lang.String |
getDescription() |
java.lang.String |
getPresentableName() |
boolean |
isApplicable(java.lang.String jreRoot) |
static ShortenCommandLine |
readShortenClasspathMethod(Element element)
Deprecated.
do not use in a new code
|
static ShortenCommandLine |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShortenCommandLine[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
writeShortenClasspathMethod(Element element,
ShortenCommandLine shortenCommandLine)
Deprecated.
do not use in a new code
|
public static final ShortenCommandLine NONE
public static final ShortenCommandLine MANIFEST
public static final ShortenCommandLine CLASSPATH_FILE
public static final ShortenCommandLine ARGS_FILE
public static ShortenCommandLine[] values()
for (ShortenCommandLine c : ShortenCommandLine.values()) System.out.println(c);
public static ShortenCommandLine valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isApplicable(java.lang.String jreRoot)
public java.lang.String getDescription()
public java.lang.String getPresentableName()
public static ShortenCommandLine getDefaultMethod(Project project, java.lang.String rootPath)
@Deprecated public static ShortenCommandLine readShortenClasspathMethod(Element element)
@Deprecated public static void writeShortenClasspathMethod(Element element, ShortenCommandLine shortenCommandLine)