public class JarApplicationConfiguration extends LocatableConfigurationBase implements CommonJavaRunConfigurationParameters, SearchScopeProvidingRunProfile, InputRedirectAware, TargetEnvironmentAwareRunProfile
InputRedirectAware.InputRedirectOptions, InputRedirectAware.InputRedirectOptionsImpl
RunConfiguration.RestartSingletonResult
TYPES_WITH_REDIRECT_AWARE_UI
DATA_KEY
Constructor and Description |
---|
JarApplicationConfiguration(Project project,
ConfigurationFactory factory,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRunOn(TargetEnvironmentConfiguration target)
Checks if this configuration supports running on the provided target (see
ExecutionTarget for details). |
void |
checkConfiguration()
Checks whether the run configuration settings are valid.
|
RunConfiguration |
clone()
Clones the run configuration.
|
java.lang.String |
getAlternativeJrePath() |
SettingsEditor<? extends RunConfiguration> |
getConfigurationEditor()
Returns the UI control for editing the run configuration settings.
|
<any> |
getDefaultLanguageRuntimeType()
Returns language runtime type that should be configured for
TargetEnvironmentConfiguration if it's
created for this particular run configuration. |
java.lang.String |
getDefaultTargetName() |
java.util.Map<java.lang.String,java.lang.String> |
getEnvs() |
InputRedirectAware.InputRedirectOptions |
getInputRedirectOptions() |
java.lang.String |
getJarPath() |
Module |
getModule() |
Module [] |
getModules() |
java.lang.String |
getPackage() |
java.lang.String |
getProgramParameters() |
java.lang.String |
getRunClass() |
GlobalSearchScope |
getSearchScope() |
RunProfileState |
getState(Executor executor,
ExecutionEnvironment environment)
Prepares for executing a specific instance of the run configuration.
|
java.lang.String |
getVMParameters() |
java.lang.String |
getWorkingDirectory() |
boolean |
isAlternativeJrePathEnabled() |
boolean |
isPassParentEnvs() |
void |
onNewConfigurationCreated()
Called when configuration created via UI (Add Configuration).
|
void |
readExternal(Element element) |
void |
setAlternativeJrePath(java.lang.String path) |
void |
setAlternativeJrePathEnabled(boolean enabled) |
void |
setDefaultTargetName(java.lang.String targetName) |
void |
setEnvs(java.util.Map<java.lang.String,java.lang.String> envs) |
void |
setJarPath(java.lang.String jarPath) |
void |
setModule(Module module) |
void |
setPassParentEnvs(boolean passParentEnvs) |
void |
setProgramParameters(java.lang.String value) |
void |
setVMParameters(java.lang.String value) |
void |
setWorkingDirectory(java.lang.String value) |
void |
writeExternal(Element element) |
getActionName, getDefaultOptionsClass, getOptions, isGeneratedName, setGeneratedName, setNameChangedByUser
addLogFile, addLogFile, addPredefinedLogFile, checkRunnerSettings, checkSettingsBeforeRun, collectOutputFromProcessHandler, createAdditionalTabComponents, customizeLogConsole, equals, excludeCompileBeforeLaunchOption, getAllLogFiles, getBeforeRunTasks, getFactory, getIcon, getLogFiles, getName, getOptionsClass, getOptionsForPredefinedLogFile, getOutputFilePath, getPredefinedLogFiles, getProject, getState, hashCode, isAllowRunningInParallel, isNewSerializationUsed, isSaveOutputToFile, isShowConsoleOnStdErr, isShowConsoleOnStdOut, loadState, onConfigurationCopied, removeAllLogFiles, removeAllPredefinedLogFiles, setAllowRunningInParallel, setBeforeRunTasks, setFileOutputPath, setName, setOptionsFromConfigurationFile, setSaveOutputToFile, setShowConsoleOnStdErr, setShowConsoleOnStdOut, toString
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
getProject
getInputFile, getInputRedirectOptions
createRunnerSettings, getBeforeRunTasks, getFactory, getId, getPresentableType, getProject, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, isAllowRunningInParallel, restartSingleton, setAllowRunningInParallel, setBeforeRunTasks, setName
getIcon, getName
suggestedName
public JarApplicationConfiguration(Project project, ConfigurationFactory factory, java.lang.String name)
public InputRedirectAware.InputRedirectOptions getInputRedirectOptions()
getInputRedirectOptions
in interface InputRedirectAware
public SettingsEditor<? extends RunConfiguration> getConfigurationEditor()
RunConfiguration
CheckableRunConfigurationEditor
. The returned object
can also implement SettingsEditorGroup
if the settings it provides need to be displayed in
multiple tabs.getConfigurationEditor
in interface RunConfiguration
public void readExternal(Element element)
readExternal
in interface RunConfiguration
readExternal
in class RunConfigurationBase
public RunConfiguration clone()
RunConfiguration
clone
in interface RunConfiguration
clone
in class RunConfigurationBase
public void setModule(Module module)
public Module getModule()
public void writeExternal(Element element)
writeExternal
in interface RunConfiguration
writeExternal
in class RunConfigurationBase
public void checkConfiguration() throws RuntimeConfigurationException
RunConfiguration
checkConfiguration
in interface RunConfiguration
RuntimeConfigurationException
- if the configuration settings contain a non-fatal problem which the user should be warned about
but the execution should still be allowed.RuntimeConfigurationError
- if the configuration settings contain a fatal problem which makes it impossible
to execute the run configuration.public Module [] getModules()
public GlobalSearchScope getSearchScope()
getSearchScope
in interface SearchScopeProvidingRunProfile
public RunProfileState getState(Executor executor, ExecutionEnvironment environment) throws ExecutionException
RunProfile
getState
in interface RunProfile
executor
- the execution mode selected by the user (run, debug, profile etc.)environment
- the environment object containing additional settings for executing the configuration.ExecutionException
public java.lang.String getJarPath()
public void setJarPath(java.lang.String jarPath)
public void setVMParameters(java.lang.String value)
setVMParameters
in interface CommonJavaRunConfigurationParameters
public java.lang.String getVMParameters()
getVMParameters
in interface CommonJavaRunConfigurationParameters
public boolean isAlternativeJrePathEnabled()
isAlternativeJrePathEnabled
in interface CommonJavaRunConfigurationParameters
isAlternativeJrePathEnabled
in interface ConfigurationWithAlternativeJre
public void setAlternativeJrePathEnabled(boolean enabled)
setAlternativeJrePathEnabled
in interface CommonJavaRunConfigurationParameters
public java.lang.String getAlternativeJrePath()
getAlternativeJrePath
in interface CommonJavaRunConfigurationParameters
getAlternativeJrePath
in interface ConfigurationWithAlternativeJre
public void setAlternativeJrePath(java.lang.String path)
setAlternativeJrePath
in interface CommonJavaRunConfigurationParameters
public java.lang.String getRunClass()
getRunClass
in interface CommonJavaRunConfigurationParameters
public java.lang.String getPackage()
getPackage
in interface CommonJavaRunConfigurationParameters
public void setProgramParameters(java.lang.String value)
setProgramParameters
in interface CommonProgramRunConfigurationParameters
public java.lang.String getProgramParameters()
getProgramParameters
in interface CommonProgramRunConfigurationParameters
public void setWorkingDirectory(java.lang.String value)
setWorkingDirectory
in interface CommonProgramRunConfigurationParameters
public java.lang.String getWorkingDirectory()
getWorkingDirectory
in interface CommonProgramRunConfigurationParameters
public void setEnvs(java.util.Map<java.lang.String,java.lang.String> envs)
setEnvs
in interface CommonProgramRunConfigurationParameters
public java.util.Map<java.lang.String,java.lang.String> getEnvs()
getEnvs
in interface CommonProgramRunConfigurationParameters
public void setPassParentEnvs(boolean passParentEnvs)
setPassParentEnvs
in interface CommonProgramRunConfigurationParameters
public boolean isPassParentEnvs()
isPassParentEnvs
in interface CommonProgramRunConfigurationParameters
public void onNewConfigurationCreated()
RunConfigurationBase
onNewConfigurationCreated
in interface ConfigurationCreationListener
onNewConfigurationCreated
in class RunConfigurationBase
public boolean canRunOn(TargetEnvironmentConfiguration target)
TargetAwareRunProfile
ExecutionTarget
for details).canRunOn
in interface TargetAwareRunProfile
canRunOn
in interface TargetEnvironmentAwareRunProfile
canRunOn
in class RunConfigurationBase
target
- target provided by ExecutionTargetProvider
public <any> getDefaultLanguageRuntimeType()
TargetEnvironmentAwareRunProfile
TargetEnvironmentConfiguration
if it's
created for this particular run configuration.
That language runtime type will be used while creating TargetEnvironmentConfiguration
using
wizard from RunOnTargetComboBox
getDefaultLanguageRuntimeType
in interface TargetEnvironmentAwareRunProfile
TargetEnvironmentType#createStepsForNewWizard
public java.lang.String getDefaultTargetName()
getDefaultTargetName
in interface TargetEnvironmentAwareRunProfile
TargetEnvironmentConfiguration#getDisplayName()
public void setDefaultTargetName(java.lang.String targetName)
setDefaultTargetName
in interface TargetEnvironmentAwareRunProfile