Class MavenConfiguration

java.lang.Object
net.microfalx.talos.core.MavenConfiguration

public class MavenConfiguration extends Object
Resolves various Maven related configuration.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MavenConfiguration(org.apache.maven.execution.MavenSession session)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the degree of parallelism.
    final org.apache.maven.execution.MavenSession
    Returns the session.
    net.microfalx.resource.Resource
    getTargetDirectory(String name, boolean topLevel)
    Returns a director inside the target directory.
    net.microfalx.resource.Resource
    getTargetDirectory(org.apache.maven.project.MavenProject project, String name)
    Returns a director inside the target directory.
    net.microfalx.resource.Resource
    getTargetFile(String name, boolean topLevel)
    Returns a file inside the target directory.
    net.microfalx.resource.Resource
    getTargetFile(org.apache.maven.project.MavenProject project, String name)
    Returns a file inside the target directory.
    boolean
    Returns whether Maven was asked to build without any output.
    boolean
    Returns whether the build uses multiple threads to build the project.
    final boolean
    Returns whether the build should show the progress report.
    final boolean
    Returns whether the output in the terminal should be completely quiet.
    boolean
    Returns whether the build is quiet and progress was requested.
    final boolean
    Returns whether the output in the terminal should be verbose.
    boolean
    Returns whether the goals requested expect the output of Maven to have the usual verbosity.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MavenConfiguration

      public MavenConfiguration(org.apache.maven.execution.MavenSession session)
  • Method Details

    • getSession

      public final org.apache.maven.execution.MavenSession getSession()
      Returns the session.
      Returns:
      a non-null instance
    • isQuiet

      public final boolean isQuiet()
      Returns whether the output in the terminal should be completely quiet.
      Returns:
      true to disable all logging, false otherwise
    • isMavenQuiet

      public boolean isMavenQuiet()
      Returns whether Maven was asked to build without any output.
      Returns:
      true if no output, false otherwise
    • isVerbose

      public final boolean isVerbose()
      Returns whether the output in the terminal should be verbose.
      Returns:
      true to be verbose, false otherwise
    • isVerboseGoals

      public boolean isVerboseGoals()
      Returns whether the goals requested expect the output of Maven to have the usual verbosity.
      Returns:
      true to shaw default Maven logging, false otherwise
    • isProgress

      public final boolean isProgress()
      Returns whether the build should show the progress report.
      Returns:
      true to be verbose, false otherwise
    • isQuietAndWithProgress

      public boolean isQuietAndWithProgress()
      Returns whether the build is quiet and progress was requested.
      Returns:
      true if quiet with progress, false otherwise
    • isParallel

      public boolean isParallel()
      Returns whether the build uses multiple threads to build the project.
      Returns:
      true if parallel, false otherwise
    • getDop

      public int getDop()
      Returns the degree of parallelism.
      Returns:
      a positiver integer
    • getTargetDirectory

      public net.microfalx.resource.Resource getTargetDirectory(String name, boolean topLevel)
      Returns a director inside the target directory.
      Parameters:
      name - the name of the directory, null to get the target directory
      topLevel - true to select the top level target directory, false for the target directory of the current project
      Returns:
      a non-null instance
    • getTargetFile

      public net.microfalx.resource.Resource getTargetFile(String name, boolean topLevel)
      Returns a file inside the target directory.
      Parameters:
      name - the name of the file
      topLevel - true to select the top level target directory, false for the target directory of the current project
      Returns:
      a non-null instance
    • getTargetDirectory

      public net.microfalx.resource.Resource getTargetDirectory(org.apache.maven.project.MavenProject project, String name)
      Returns a director inside the target directory.
      Parameters:
      project - the project
      name - the name of the directory
      Returns:
      a non-null instance
    • getTargetFile

      public net.microfalx.resource.Resource getTargetFile(org.apache.maven.project.MavenProject project, String name)
      Returns a file inside the target directory.
      Parameters:
      project - the project
      name - the name of the file
      Returns:
      a non-null instance