Class BuildContext


  • public class BuildContext
    extends Object
    • Constructor Detail

      • BuildContext

        public BuildContext​(ReactorProjectIdentities project,
                            String qualifier,
                            List<TargetEnvironment> environments)
                     throws IllegalArgumentException
        Creates a new BuildContext instance.
        Parameters:
        project - GAV coordinates and build output directory of the current project
        qualifier - The build qualifier of the current project
        environments - The list of environments targeted by the build; must contain at least one entry
        Throws:
        IllegalArgumentException - if no target environment has been specified
    • Method Detail

      • getQualifier

        public String getQualifier()
        Returns:
        the build qualifier of the current project
      • getEnvironments

        public List<TargetEnvironment> getEnvironments()
        Returns the list of configured target environments, or the running environment if no environments have been specified explicitly.
        Returns:
        the list of TargetEnvironment to be addressed; never null or empty
      • getTargetDirectory

        public BuildOutputDirectory getTargetDirectory()
        Returns:
        the build output directory of the current project