Class Source

  • Direct Known Subclasses:
    SoftlinkSource

    public class Source
    extends Object
    A description of a location where files to be packaged can be found.
    Author:
    Bob Allison, Carlos, Brett Okken
    • Constructor Detail

      • Source

        public Source()
    • Method Detail

      • getLocation

        public String getLocation()
        Retrieve the location holding the file(s) to install.
        Returns:
        The location holding the file(s) to install.
      • setLocation

        public void setLocation​(String loc)
        Set the location holding the file(s) to install.
        Parameters:
        loc - The new location holding the file(s) to install.
      • getIncludes

        public List<String> getIncludes()
        Retrieve the list of files to include in the package.
        Returns:
        The list of files to include in the package.
      • setIncludes

        public void setIncludes​(List<String> incl)
        Set the list of files to include in the package.
        Parameters:
        incl - The new list of files to include in the package.
      • getExcludes

        public List<String> getExcludes()
        Retrieve the list of files to exclude from the package.
        Returns:
        The list of files to exclude from the package.
      • setExcludes

        public void setExcludes​(List<String> excl)
        Set the list of files to exclude from the package.
        Parameters:
        excl - The new list of files to exclude from the package.
      • getNoDefaultExcludes

        public boolean getNoDefaultExcludes()
        Retrieve the default exclude status.
        Returns:
        true if the default excludes should be omitted.
      • setNoDefaultExcludes

        public void setNoDefaultExcludes​(boolean noDefExcl)
        Set the default exclude status.
        Parameters:
        noDefExcl - true if the default excludes should be omitted.
      • setDestination

        public void setDestination​(String destination)
        Sets the destination file name.

        NOTE: This is only applicable if the location is a file, not a directory.

        Parameters:
        destination - The destination that the location should be in the final rpm.
      • setTargetArchitecture

        public void setTargetArchitecture​(String targetArch)
        Sets a regular expression that indicates that the files defined are only applicable if the expression matches the architecture.

        In order to be backwards compatible, the targetArch will be converted to lower case for the purpose of comparison.

        Parameters:
        targetArch - The target architecture to set.
      • getTargetOSName

        public String getTargetOSName()
        Returns:
        Returns the targetOSName.
        Since:
        2.0-beta-3
      • setTargetOSName

        public void setTargetOSName​(String targetOSName)
        Sets a regular expression that indicates that the files defined are only applicable if the expression matches the operating system name.
        Parameters:
        targetOSName - The targetOSName to set.
        Since:
        2.0-beta-3
      • isFilter

        public boolean isFilter()
        Returns:
        Returns the filter.
        Since:
        2.0
      • setFilter

        public void setFilter​(boolean filter)
        Parameters:
        filter - The filter to set.
        Since:
        2.0
      • getFailIfLocationNotExists

        public boolean getFailIfLocationNotExists()
        Returns:
        Returns the failIfLocationNotExists.
      • setFailIfLocationNotExists

        public void setFailIfLocationNotExists​(boolean failIfLocationNotExists)
        Parameters:
        failIfLocationNotExists - The failIfLocationNotExists to set.
      • isSingleDir

        public boolean isSingleDir()