Class BuildContext


  • public class BuildContext
    extends java.lang.Object
    • Constructor Detail

      • BuildContext

        public BuildContext​(ReactorProjectIdentities project,
                            java.lang.String qualifier,
                            java.util.List<TargetEnvironment> environments)
                     throws java.lang.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:
        java.lang.IllegalArgumentException - if no target environment has been specified
    • Method Detail

      • getQualifier

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

        public java.util.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 BuildDirectory getTargetDirectory()
        Returns:
        the build output directory of the current project