public class JavaParameters extends SimpleJavaParameters
Modifier and Type | Field and Description |
---|---|
static int |
CLASSES_AND_TESTS |
static int |
CLASSES_ONLY |
static int |
INCLUDE_PROVIDED |
static java.lang.String |
JAVA_ENABLE_PREVIEW_PROPERTY |
static DataKey<JavaParameters> |
JAVA_PARAMETERS |
static int |
JDK_AND_CLASSES |
static int |
JDK_AND_CLASSES_AND_PROVIDED |
static int |
JDK_AND_CLASSES_AND_TESTS |
static int |
JDK_ONLY |
static int |
TESTS_ONLY |
Constructor and Description |
---|
JavaParameters() |
Modifier and Type | Method and Description |
---|---|
void |
configureByModule(Module module,
int classPathType) |
void |
configureByModule(Module module,
int classPathType,
Sdk jdk) |
void |
configureByProject(Project project,
int classPathType,
Sdk jdk) |
java.lang.String |
getJdkPath() |
static Sdk |
getJdkToRunModule(Module module,
boolean productionOnly) |
static Sdk |
getModuleJdk(Module module)
Deprecated.
use
getValidJdkToRunModule(Module, boolean) instead |
static Sdk |
getValidJdkToRunModule(Module module,
boolean productionOnly) |
void |
setDefaultCharset(Project project) |
createOSProcessHandler, getCharset, getClassPath, getJarPath, getJdk, getMainClass, getModuleName, getModulePath, getVMParametersList, isArgFile, isClasspathFile, isDynamicClasspath, isDynamicParameters, isDynamicVMOptions, isUseClasspathJar, setArgFile, setCharset, setClasspathFile, setJarPath, setJdk, setMainClass, setModuleName, setShortenCommandLine, setUseClasspathJar, setUseDynamicClasspath, setUseDynamicClasspath, setUseDynamicParameters, setUseDynamicVMOptions, toCommandLine, toCommandLine
addEnv, getEnv, getProgramParametersList, getWorkingDirectory, isPassParentEnvs, setEnv, setPassParentEnvs, setupEnvs, setWorkingDirectory, setWorkingDirectory
public static final java.lang.String JAVA_ENABLE_PREVIEW_PROPERTY
public static final DataKey<JavaParameters> JAVA_PARAMETERS
public static final int JDK_ONLY
public static final int CLASSES_ONLY
public static final int TESTS_ONLY
public static final int INCLUDE_PROVIDED
public static final int JDK_AND_CLASSES
public static final int JDK_AND_CLASSES_AND_TESTS
public static final int CLASSES_AND_TESTS
public static final int JDK_AND_CLASSES_AND_PROVIDED
public java.lang.String getJdkPath() throws CantRunException
CantRunException
public void configureByModule(Module module, int classPathType, Sdk jdk) throws CantRunException
CantRunException
public void setDefaultCharset(Project project)
public void configureByModule(Module module, int classPathType) throws CantRunException
CantRunException
@Deprecated public static Sdk getModuleJdk(Module module) throws CantRunException
getValidJdkToRunModule(Module, boolean)
insteadCantRunException
public static Sdk getValidJdkToRunModule(Module module, boolean productionOnly) throws CantRunException
CantRunException
public void configureByProject(Project project, int classPathType, Sdk jdk) throws CantRunException
CantRunException