Class PackagingRule

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    EffectivePackagingRule

    public class PackagingRule
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Identification of Maven Artifact.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<Artifact> aliases
      Field aliases.
      private Artifact artifactGlob
      Pattern specifying one or more Maven artifacts.
      private java.util.List<java.lang.String> files
      Field files.
      private java.lang.Boolean matched
      Whether any reactor artifact matches artifact glob pattern or this rule.
      private java.lang.Boolean optional
      Whether this rule is optional.
      private java.lang.String targetPackage
      Name of binary package into which artifacts are assigned.
      private java.lang.String targetRepository
      ID of repository into which artifacts are installed.
      private java.util.List<java.lang.String> versions
      Field versions.
    • Constructor Summary

      Constructors 
      Constructor Description
      PackagingRule()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAlias​(Artifact artifact)
      Add an alias.
      void addFile​(java.lang.String string)
      Method addFile.
      void addVersion​(java.lang.String string)
      Method addVersion.
      PackagingRule clone()
      Method clone.
      java.util.List<Artifact> getAliases()
      Method getAliases.
      Artifact getArtifactGlob()
      Get pattern specifying one or more Maven artifacts.
      java.util.List<java.lang.String> getFiles()
      Method getFiles.
      java.lang.String getTargetPackage()
      Get name of binary package into which artifacts are assigned.
      java.lang.String getTargetRepository()
      Get iD of repository into which artifacts are installed.
      java.util.List<java.lang.String> getVersions()
      Method getVersions.
      java.lang.Boolean isMatched()
      Get whether any reactor artifact matches artifact glob pattern or this rule.
      java.lang.Boolean isOptional()
      Get whether this rule is optional.
      void removeAlias​(Artifact artifact)
      Remove an alias.
      void removeFile​(java.lang.String string)
      Method removeFile.
      void removeVersion​(java.lang.String string)
      Method removeVersion.
      void setAliases​(java.util.List<Artifact> aliases)
      Set alternative identifiers of artifacts.
      void setArtifactGlob​(Artifact artifactGlob)
      Set pattern specifying one or more Maven artifacts.
      void setFiles​(java.util.List<java.lang.String> files)
      Set files holding the artifact.
      void setMatched​(java.lang.Boolean matched)
      Set whether any reactor artifact matches artifact glob pattern or this rule.
      void setOptional​(java.lang.Boolean optional)
      Set whether this rule is optional.
      void setTargetPackage​(java.lang.String targetPackage)
      Set name of binary package into which artifacts are assigned.
      void setTargetRepository​(java.lang.String targetRepository)
      Set iD of repository into which artifacts are installed.
      void setVersions​(java.util.List<java.lang.String> versions)
      Set compatibility versions of the artifact.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • artifactGlob

        private Artifact artifactGlob
        Pattern specifying one or more Maven artifacts.
      • targetPackage

        private java.lang.String targetPackage
        Name of binary package into which artifacts are assigned.
      • targetRepository

        private java.lang.String targetRepository
        ID of repository into which artifacts are installed.
      • files

        private java.util.List<java.lang.String> files
        Field files.
      • versions

        private java.util.List<java.lang.String> versions
        Field versions.
      • aliases

        private java.util.List<Artifact> aliases
        Field aliases.
      • optional

        private java.lang.Boolean optional
        Whether this rule is optional. Non-optional rules cause uild failure if they are not matched.
      • matched

        private java.lang.Boolean matched
        Whether any reactor artifact matches artifact glob pattern or this rule. Non-optional rules cause build failure if hey are not matched.
    • Constructor Detail

      • PackagingRule

        public PackagingRule()
    • Method Detail

      • addFile

        public void addFile​(java.lang.String string)
        Method addFile.
        Parameters:
        string -
      • addVersion

        public void addVersion​(java.lang.String string)
        Method addVersion.
        Parameters:
        string -
      • clone

        public PackagingRule clone()
        Method clone.
        Overrides:
        clone in class java.lang.Object
        Returns:
        PackagingRule
      • getAliases

        public java.util.List<Artifact> getAliases()
        Method getAliases.
        Returns:
        List
      • getArtifactGlob

        public Artifact getArtifactGlob()
        Get pattern specifying one or more Maven artifacts.
        Returns:
        Artifact
      • getFiles

        public java.util.List<java.lang.String> getFiles()
        Method getFiles.
        Returns:
        List
      • getTargetPackage

        public java.lang.String getTargetPackage()
        Get name of binary package into which artifacts are assigned.
        Returns:
        String
      • getTargetRepository

        public java.lang.String getTargetRepository()
        Get iD of repository into which artifacts are installed.
        Returns:
        String
      • getVersions

        public java.util.List<java.lang.String> getVersions()
        Method getVersions.
        Returns:
        List
      • isMatched

        public java.lang.Boolean isMatched()
        Get whether any reactor artifact matches artifact glob pattern or this rule. Non-optional rules cause build failure if hey are not matched.
        Returns:
        Boolean
      • isOptional

        public java.lang.Boolean isOptional()
        Get whether this rule is optional. Non-optional rules cause uild failure if they are not matched.
        Returns:
        Boolean
      • removeFile

        public void removeFile​(java.lang.String string)
        Method removeFile.
        Parameters:
        string -
      • removeVersion

        public void removeVersion​(java.lang.String string)
        Method removeVersion.
        Parameters:
        string -
      • setAliases

        public void setAliases​(java.util.List<Artifact> aliases)
        Set alternative identifiers of artifacts.
        Parameters:
        aliases -
      • setArtifactGlob

        public void setArtifactGlob​(Artifact artifactGlob)
        Set pattern specifying one or more Maven artifacts.
        Parameters:
        artifactGlob -
      • setFiles

        public void setFiles​(java.util.List<java.lang.String> files)
        Set files holding the artifact.
        Parameters:
        files -
      • setMatched

        public void setMatched​(java.lang.Boolean matched)
        Set whether any reactor artifact matches artifact glob pattern or this rule. Non-optional rules cause build failure if hey are not matched.
        Parameters:
        matched -
      • setOptional

        public void setOptional​(java.lang.Boolean optional)
        Set whether this rule is optional. Non-optional rules cause uild failure if they are not matched.
        Parameters:
        optional -
      • setTargetPackage

        public void setTargetPackage​(java.lang.String targetPackage)
        Set name of binary package into which artifacts are assigned.
        Parameters:
        targetPackage -
      • setTargetRepository

        public void setTargetRepository​(java.lang.String targetRepository)
        Set iD of repository into which artifacts are installed.
        Parameters:
        targetRepository -
      • setVersions

        public void setVersions​(java.util.List<java.lang.String> versions)
        Set compatibility versions of the artifact.
        Parameters:
        versions -
      • addAlias

        public void addAlias​(Artifact artifact)
        Add an alias.
        Parameters:
        artifact - alias to be added
      • removeAlias

        public void removeAlias​(Artifact artifact)
        Remove an alias.
        Parameters:
        artifact - alias to be removed