Class BasicProcessSpec

java.lang.Object
de.iip_ecosphere.platform.configuration.maven.BasicProcessSpec
Direct Known Subclasses:
TestProcessSpec

public class BasicProcessSpec extends Object
Defines an additional process to be executed in the build process.
Author:
Holger Eichelberger, SSE
  • Field Details

    • description

      @Parameter(required=true) private String description
    • cmd

      @Parameter(required=true) private String cmd
    • cmdAsScript

      @Parameter(required=false, defaultValue="false") private boolean cmdAsScript
    • args

      @Parameter(required=false) private List<String> args
    • home

      @Parameter(required=false, defaultValue="") private File home
    • ports

      @Parameter(required=false) private List<BasicProcessSpec.PortSpec> ports
    • errToIn

      @Parameter(required=false, defaultValue="false") private boolean errToIn
  • Constructor Details

    • BasicProcessSpec

      public BasicProcessSpec()
  • Method Details

    • getDescription

      public String getDescription()
      Returns the description.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets the description. [mvn]
      Parameters:
      description - the description to set
    • getCmd

      public String getCmd()
      Returns the command.
      Returns:
      the cmd
    • setCmd

      public void setCmd(String cmd)
      Defines the command. [mvn]
      Parameters:
      cmd - the cmd to set
    • isCmdAsScript

      public boolean isCmdAsScript()
      Returns whether getCmd() shall be treated like a script.
      Returns:
      the cmdAsScript
    • setCmdAsScript

      public void setCmdAsScript(boolean cmdAsScript)
      Sets that cmd shell be treated like a script. [mvn]
      Parameters:
      cmdAsScript - the cmdAsScript to set
    • getArgs

      public List<String> getArgs()
      Returns the command line arguments for cmd.
      Returns:
      the args
    • setArgs

      public void setArgs(List<String> args)
      Defines the command line arguments for cmd. [mvn]
      Parameters:
      args - the args to set
    • getHome

      public File getHome()
      Returns the process home directory.
      Returns:
      the home directory
    • setHome

      public void setHome(File home)
      Defines the process home directory. [mvn]
      Parameters:
      home - the home directory to set
    • isErrToIn

      public boolean isErrToIn()
      Returns whether the error stream of the process shall be redirected to the input stream.
      Returns:
      true for redirect, false for no redirect
    • setErrToIn

      public void setErrToIn(boolean errToIn)
      Defines whether the error stream of the process shall be redirected to the input stream.
      Parameters:
      errToIn - true for redirect, false for no redirect
    • allocatePorts

      void allocatePorts(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log)
      Allocates the ports.
      Parameters:
      project - the maven project to be modified
      log - the log
    • extrapolateArgs

      List<String> extrapolateArgs()
      Extrapolates the property expressions.
      Returns:
      the extrapolated arguments
    • extrapolateArgs

      List<String> extrapolateArgs(List<String> args)
      Extrapolates the property expressions.
      Parameters:
      args - the arguments to interpret the expressions for
      Returns:
      the extrapolated arguments