public class SimpleJavaParameters extends SimpleProgramParameters
Constructor and Description |
---|
SimpleJavaParameters() |
Modifier and Type | Method and Description |
---|---|
OSProcessHandler |
createOSProcessHandler() |
java.nio.charset.Charset |
getCharset() |
PathsList |
getClassPath() |
java.lang.String |
getJarPath() |
Sdk |
getJdk() |
java.lang.String |
getMainClass() |
java.lang.String |
getModuleName() |
PathsList |
getModulePath() |
ParametersList |
getVMParametersList() |
boolean |
isArgFile() |
boolean |
isClasspathFile() |
boolean |
isDynamicClasspath() |
boolean |
isDynamicParameters() |
boolean |
isDynamicVMOptions() |
boolean |
isUseClasspathJar() |
void |
setArgFile(boolean argFile)
Option to use java 9 @argFile
|
void |
setCharset(java.nio.charset.Charset charset) |
void |
setClasspathFile(boolean classpathFile) |
void |
setJarPath(java.lang.String jarPath) |
void |
setJdk(Sdk jdk) |
void |
setMainClass(java.lang.String mainClass) |
void |
setModuleName(java.lang.String moduleName) |
void |
setShortenCommandLine(ShortenCommandLine mode,
Project project) |
void |
setUseClasspathJar(boolean useClasspathJar)
Allows to use a specially crafted .jar file instead of a custom class loader to pass classpath/properties/parameters.
|
void |
setUseDynamicClasspath(boolean useDynamicClasspath) |
void |
setUseDynamicClasspath(Project project) |
void |
setUseDynamicParameters(boolean useDynamicParameters)
Allows passing program parameters via a temporary file in order to avoid "too long command line" problem.
|
void |
setUseDynamicVMOptions(boolean useDynamicVMOptions)
Allows passing system properties via a temporary file in order to avoid "too long command line" problem.
|
GeneralCommandLine |
toCommandLine()
Consider using
toCommandLine(TargetEnvironmentRequest, TargetEnvironmentConfiguration) instead with request created by LocalTargetEnvironmentFactory as an argument |
TargetedCommandLineBuilder |
toCommandLine(TargetEnvironmentRequest request,
TargetEnvironmentConfiguration configuration) |
addEnv, getEnv, getProgramParametersList, getWorkingDirectory, isPassParentEnvs, setEnv, setPassParentEnvs, setupEnvs, setWorkingDirectory, setWorkingDirectory
public Sdk getJdk()
public void setJdk(Sdk jdk)
public java.lang.String getMainClass()
public void setMainClass(java.lang.String mainClass)
public PathsList getClassPath()
public java.lang.String getModuleName()
public void setModuleName(java.lang.String moduleName)
public PathsList getModulePath()
public ParametersList getVMParametersList()
public java.nio.charset.Charset getCharset()
public void setCharset(java.nio.charset.Charset charset)
public boolean isDynamicClasspath()
public void setUseDynamicClasspath(boolean useDynamicClasspath)
public void setUseDynamicClasspath(Project project)
public boolean isDynamicVMOptions()
public void setUseDynamicVMOptions(boolean useDynamicVMOptions)
public boolean isDynamicParameters()
public void setUseDynamicParameters(boolean useDynamicParameters)
public boolean isUseClasspathJar()
public boolean isArgFile()
public void setArgFile(boolean argFile)
public boolean isClasspathFile()
public void setClasspathFile(boolean classpathFile)
public void setUseClasspathJar(boolean useClasspathJar)
public void setShortenCommandLine(ShortenCommandLine mode, Project project)
public java.lang.String getJarPath()
public void setJarPath(java.lang.String jarPath)
public GeneralCommandLine toCommandLine() throws CantRunException
toCommandLine(TargetEnvironmentRequest, TargetEnvironmentConfiguration)
instead with request created by LocalTargetEnvironmentFactory
as an argumentCantRunException
- when incorrect Java SDK is specifiedJdkUtil.setupJVMCommandLine(SimpleJavaParameters)
public TargetedCommandLineBuilder toCommandLine(TargetEnvironmentRequest request, TargetEnvironmentConfiguration configuration) throws CantRunException
CantRunException
- when incorrect Java SDK is specifiedJdkUtil.setupJVMCommandLine(SimpleJavaParameters)
public OSProcessHandler createOSProcessHandler() throws ExecutionException
ExecutionException