Class BeanRunConfig

java.lang.Object
org.netbeans.modules.maven.execute.BeanRunConfig
All Implemented Interfaces:
RunConfig
Direct Known Subclasses:
ModelRunConfig

public class BeanRunConfig extends Object implements RunConfig
  • Constructor Details

    • BeanRunConfig

      public BeanRunConfig()
      Creates a new instance of BeanRunConfig
    • BeanRunConfig

      public BeanRunConfig(RunConfig parent)
      create a new instance that wraps around the parent instance, allowing to change values while delegating to originals if not changed.
      Parameters:
      parent -
  • Method Details

    • getActionContext

      public org.openide.util.Lookup getActionContext()
      Description copied from interface: RunConfig
      Provides access to possible additional parameters from the action invoker. Must not return null, use Lookup.EMPTY for empty instance.
      Specified by:
      getActionContext in interface RunConfig
      Returns:
      action context Lookup
    • setActionContext

      public void setActionContext(org.openide.util.Lookup actionContext)
    • reassignMavenProjectFromParent

      public void reassignMavenProjectFromParent()
    • getExecutionDirectory

      public final File getExecutionDirectory()
      Description copied from interface: RunConfig
      directory where the maven build execution happens.
      Specified by:
      getExecutionDirectory in interface RunConfig
      Returns:
    • setExecutionDirectory

      public final void setExecutionDirectory(File executionDirectory)
      Specified by:
      setExecutionDirectory in interface RunConfig
    • getProject

      public final org.netbeans.api.project.Project getProject()
      Description copied from interface: RunConfig
      project that is being used for execution, can be null.
      Specified by:
      getProject in interface RunConfig
      Returns:
    • getMavenProject

      public final org.apache.maven.project.MavenProject getMavenProject()
      Description copied from interface: RunConfig
      the maven project instance loaded with the context of execution, with execution's profiles enabled and execution properties injected. Can differd from the MavenProject returned from within the Project instance. All Maven model checks shall be done against this instance.
      Specified by:
      getMavenProject in interface RunConfig
      Returns:
    • setProject

      public final void setProject(org.netbeans.api.project.Project project)
    • getGoals

      public final List<String> getGoals()
      Description copied from interface: RunConfig
      goals to be executed.
      Specified by:
      getGoals in interface RunConfig
      Returns:
      a list of goals to run
    • setGoals

      public final void setGoals(List<String> goals)
    • getExecutionName

      public final String getExecutionName()
      Specified by:
      getExecutionName in interface RunConfig
    • setExecutionName

      public final void setExecutionName(String executionName)
    • getProperties

      public final Map<? extends String, ? extends String> getProperties()
      Description copied from interface: RunConfig
      Properties to be used in execution.
      Specified by:
      getProperties in interface RunConfig
      Returns:
      a read-only copy of the current properties (possibly inherited from the parent)
    • setProperty

      public final void setProperty(@NonNull String key, @NullAllowed String value)
      Specified by:
      setProperty in interface RunConfig
    • getInternalProperties

      public final Map<? extends String, ? extends Object> getInternalProperties()
      Specified by:
      getInternalProperties in interface RunConfig
    • setInternalProperty

      public final void setInternalProperty(@NonNull String key, @NullAllowed Object value)
      Specified by:
      setInternalProperty in interface RunConfig
    • addProperties

      public final void addProperties(Map<String,String> props)
      Specified by:
      addProperties in interface RunConfig
    • isShowDebug

      public final boolean isShowDebug()
      Specified by:
      isShowDebug in interface RunConfig
    • setShowDebug

      public final void setShowDebug(boolean showDebug)
    • isShowError

      public final boolean isShowError()
      Specified by:
      isShowError in interface RunConfig
    • setShowError

      public final void setShowError(boolean showError)
    • isOffline

      public final Boolean isOffline()
      Specified by:
      isOffline in interface RunConfig
    • setOffline

      public final void setOffline(Boolean offline)
      Specified by:
      setOffline in interface RunConfig
    • getActivatedProfiles

      public final List<String> getActivatedProfiles()
      Specified by:
      getActivatedProfiles in interface RunConfig
    • setActivatedProfiles

      public final void setActivatedProfiles(List<String> activeteProfiles)
      Specified by:
      setActivatedProfiles in interface RunConfig
    • isRecursive

      public final boolean isRecursive()
      Specified by:
      isRecursive in interface RunConfig
    • setRecursive

      public final void setRecursive(boolean rec)
    • isUpdateSnapshots

      public final boolean isUpdateSnapshots()
      Specified by:
      isUpdateSnapshots in interface RunConfig
    • setUpdateSnapshots

      public final void setUpdateSnapshots(boolean set)
    • getTaskDisplayName

      public final String getTaskDisplayName()
      Specified by:
      getTaskDisplayName in interface RunConfig
    • setTaskDisplayName

      public final void setTaskDisplayName(String name)
    • isInteractive

      public final boolean isInteractive()
      Specified by:
      isInteractive in interface RunConfig
    • setInteractive

      public final void setInteractive(boolean ia)
    • setActionName

      public void setActionName(String actionName)
    • getActionName

      public String getActionName()
      Specified by:
      getActionName in interface RunConfig
    • getSelectedFileObject

      public org.openide.filesystems.FileObject getSelectedFileObject()
      Specified by:
      getSelectedFileObject in interface RunConfig
    • setFileObject

      public void setFileObject(org.openide.filesystems.FileObject selectedFile)
    • getPreExecution

      public RunConfig getPreExecution()
      Specified by:
      getPreExecution in interface RunConfig
    • setPreExecution

      public void setPreExecution(RunConfig config)
      Specified by:
      setPreExecution in interface RunConfig
    • getReactorStyle

      public final RunConfig.ReactorStyle getReactorStyle()
      Specified by:
      getReactorStyle in interface RunConfig
    • setReactorStyle

      public final void setReactorStyle(RunConfig.ReactorStyle style)
    • getOptions

      public Map<? extends String, ? extends String> getOptions()
      Description copied from interface: RunConfig
      Options/switches passed to maven.
      Specified by:
      getOptions in interface RunConfig
      Returns:
      a read-only copy of the current maven options
    • setOption

      public void setOption(String key, String value)
      Description copied from interface: RunConfig
      Sets option that will be passed to maven.
      Specified by:
      setOption in interface RunConfig
      Parameters:
      key - a key that represents option/switch name
      value - a value of the option/switch
    • addOptions

      public void addOptions(Map<String,String> args)
      Description copied from interface: RunConfig
      Adds options/switches that will be passed to maven.
      Specified by:
      addOptions in interface RunConfig
      Parameters:
      args - options/switches that will be added