Class BuildBase

    • Constructor Detail

      • BuildBase

        public BuildBase()
    • Method Detail

      • addFilter

        public void addFilter(String string)
        Method addFilter.
        Parameters:
        string -
      • addResource

        public void addResource(Resource resource)
        Method addResource.
        Parameters:
        resource -
      • addTestResource

        public void addTestResource(Resource resource)
        Method addTestResource.
        Parameters:
        resource -
      • getDefaultGoal

        public String getDefaultGoal()
        Get the default goal (or phase in Maven 2) to execute when none is specified for the project. Note that in case of a multi-module build, only the default goal of the top-level project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3, multiple goals/phases can be separated by whitespace.
        Returns:
        String
      • getDirectory

        public String getDirectory()
        Get the directory where all files generated by the build are placed. The default value is target.
        Returns:
        String
      • getFilters

        public List<String> getFilters()
        Method getFilters.
        Returns:
        List
      • getFinalName

        public String getFinalName()
        Get the filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is ${artifactId}-${version}.
        Returns:
        String
      • getResources

        public List<Resource> getResources()
        Method getResources.
        Returns:
        List
      • getTestResources

        public List<Resource> getTestResources()
        Method getTestResources.
        Returns:
        List
      • removeFilter

        public void removeFilter(String string)
        Method removeFilter.
        Parameters:
        string -
      • removeResource

        public void removeResource(Resource resource)
        Method removeResource.
        Parameters:
        resource -
      • removeTestResource

        public void removeTestResource(Resource resource)
        Method removeTestResource.
        Parameters:
        resource -
      • setDefaultGoal

        public void setDefaultGoal(String defaultGoal)
        Set the default goal (or phase in Maven 2) to execute when none is specified for the project. Note that in case of a multi-module build, only the default goal of the top-level project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3, multiple goals/phases can be separated by whitespace.
        Parameters:
        defaultGoal -
      • setDirectory

        public void setDirectory(String directory)
        Set the directory where all files generated by the build are placed. The default value is target.
        Parameters:
        directory -
      • setFilters

        public void setFilters(List<String> filters)
        Set the list of filter properties files that are used when filtering is enabled.
        Parameters:
        filters -
      • setFinalName

        public void setFinalName(String finalName)
        Set the filename (excluding the extension, and with no path information) that the produced artifact will be called. The default value is ${artifactId}-${version}.
        Parameters:
        finalName -
      • setResources

        public void setResources(List<Resource> resources)
        Set this element describes all of the classpath resources such as properties files associated with a project. These resources are often included in the final package. The default value is src/main/resources.
        Parameters:
        resources -
      • setTestResources

        public void setTestResources(List<Resource> testResources)
        Set this element describes all of the classpath resources such as properties files associated with a project's unit tests. The default value is src/test/resources.
        Parameters:
        testResources -