Class AbstractJReleaserOperation<S extends AbstractJReleaserOperation<S>>

Direct Known Subclasses:
AbstractJReleaserModelOperation, JReleaserEnvOperation, JReleaserInitOperation, JReleaserJsonSchemaOperation, JReleaserTemplateGenerateOperation

public abstract class AbstractJReleaserOperation<S extends AbstractJReleaserOperation<S>> extends AbstractProcessOperation<S>
Base class for all JReleaser operations.
  • Field Details

  • Constructor Details

    • AbstractJReleaserOperation

      protected AbstractJReleaserOperation(String command)
  • Method Details

    • self

      protected final S self()
    • getCommand

      protected String getCommand()
    • getProject

      protected BaseProject getProject()
    • setOption

      protected void setOption(String key)
    • setOption

      protected void setOption(String key, String value)
    • basedir

      public S basedir(String directory)
      Sets the base directory.
      Parameters:
      directory - the base directory
      Returns:
      this operation instance
    • basedir

      public S basedir(File directory)
      Sets the base directory.
      Parameters:
      directory - the base directory
      Returns:
      this operation instance
    • basedir

      public S basedir(Path directory)
      Sets the base directory.
      Parameters:
      directory - the base directory
      Returns:
      this operation instance
    • debug

      public S debug()
      Set log level to debug.
      Returns:
      this operation instance
    • execute

      public void execute() throws IOException, InterruptedException, ExitStatusException
      Overrides:
      execute in class AbstractProcessOperation<S extends AbstractJReleaserOperation<S>>
      Throws:
      IOException
      InterruptedException
      ExitStatusException
    • executeConstructProcessCommandList

      protected List<String> executeConstructProcessCommandList()
      Part of the execute() operation, constructs the command list to use for building the process.
      Specified by:
      executeConstructProcessCommandList in class AbstractProcessOperation<S extends AbstractJReleaserOperation<S>>
    • fromProject

      public S fromProject(BaseProject project)
      Configures the operation from a BaseProject.
      Specified by:
      fromProject in class AbstractProcessOperation<S extends AbstractJReleaserOperation<S>>
      Parameters:
      project - the project to configure the operation from
    • help

      public S help()
      Show the help message.
      Returns:
      this operation instance
    • info

      public S info()
      Set log level to info.
      Returns:
      this operation instance
    • outputDirectory

      public S outputDirectory(String directory)
      Output directory.
      Parameters:
      directory - the output directory
      Returns:
      this operation instance
    • outputDirectory

      public S outputDirectory(File directory)
      Output directory.
      Parameters:
      directory - the output directory
      Returns:
      this operation instance
    • outputDirectory

      public S outputDirectory(Path directory)
      Output directory.
      Parameters:
      directory - the output directory
      Returns:
      this operation instance
    • systemProperty

      public S systemProperty(String key, String value)
      Sets a System property.
      Parameters:
      key - the property key
      value - the property value
      Returns:
      this operation instance
    • version

      public S version()
      Print version information.
      Returns:
      this operation instance
    • warn

      public S warn()
      Set log level to warn.
      Returns:
      this operation instance