Coverage Report - org.apache.maven.plugins.assembly.model.DependencySet
 
Classes in this File Line Coverage Branch Coverage Complexity
DependencySet
0%
0/20
N/A
1
 
 1  
 /*
 2  
  * $Id$
 3  
  */
 4  
 
 5  
 package org.apache.maven.plugins.assembly.model;
 6  
 
 7  
 /**
 8  
  * 
 9  
  *         A dependencySet allows inclusion and exclusion of
 10  
  * project dependencies
 11  
  *         in the assembly.
 12  
  *       
 13  
  * 
 14  
  * @version $Revision$ $Date$
 15  
  */
 16  0
 public class DependencySet extends SetBase 
 17  
 implements java.io.Serializable
 18  
 {
 19  
 
 20  
 
 21  
       //--------------------------/
 22  
      //- Class/Member Variables -/
 23  
     //--------------------------/
 24  
 
 25  
     /**
 26  
      * Field outputFileNameMapping
 27  
      */
 28  0
     private String outputFileNameMapping = "${artifactId}-${version}.${extension}";
 29  
 
 30  
     /**
 31  
      * Field unpack
 32  
      */
 33  0
     private boolean unpack = false;
 34  
 
 35  
     /**
 36  
      * Field unpackOptions
 37  
      */
 38  
     private UnpackOptions unpackOptions;
 39  
 
 40  
     /**
 41  
      * Field scope
 42  
      */
 43  0
     private String scope = "runtime";
 44  
 
 45  
 
 46  
       //-----------/
 47  
      //- Methods -/
 48  
     //-----------/
 49  
 
 50  
     /**
 51  
      * Get 
 52  
      *             Sets the mapping pattern for all dependencies
 53  
      * included in this
 54  
      *             assembly. Default is
 55  
      * ${artifactId}-${version}.${extension}.
 56  
      *           
 57  
      */
 58  
     public String getOutputFileNameMapping()
 59  
     {
 60  0
         return this.outputFileNameMapping;
 61  
     } //-- String getOutputFileNameMapping() 
 62  
 
 63  
     /**
 64  
      * Get 
 65  
      *             Sets the dependency scope for this
 66  
      * dependencySet.
 67  
      *             Default scope value is "runtime".
 68  
      *           
 69  
      */
 70  
     public String getScope()
 71  
     {
 72  0
         return this.scope;
 73  
     } //-- String getScope() 
 74  
 
 75  
     /**
 76  
      * Get 
 77  
      *           Allows the specification of includes and excludes,
 78  
      * along with filtering options, for items
 79  
      *           unpacked from a dependency artifact.
 80  
      *           
 81  
      */
 82  
     public UnpackOptions getUnpackOptions()
 83  
     {
 84  0
         return this.unpackOptions;
 85  
     } //-- UnpackOptions getUnpackOptions() 
 86  
 
 87  
     /**
 88  
      * Get 
 89  
      *             If set to true, this property will unpack all
 90  
      * dependencies
 91  
      *             into the specified output directory. When set to
 92  
      * false
 93  
      *             dependencies will be includes as archives
 94  
      * (jars).
 95  
      *             Default value is false.
 96  
      *           
 97  
      */
 98  
     public boolean isUnpack()
 99  
     {
 100  0
         return this.unpack;
 101  
     } //-- boolean isUnpack() 
 102  
 
 103  
     /**
 104  
      * Set 
 105  
      *             Sets the mapping pattern for all dependencies
 106  
      * included in this
 107  
      *             assembly. Default is
 108  
      * ${artifactId}-${version}.${extension}.
 109  
      *           
 110  
      * 
 111  
      * @param outputFileNameMapping
 112  
      */
 113  
     public void setOutputFileNameMapping(String outputFileNameMapping)
 114  
     {
 115  0
         this.outputFileNameMapping = outputFileNameMapping;
 116  0
     } //-- void setOutputFileNameMapping(String) 
 117  
 
 118  
     /**
 119  
      * Set 
 120  
      *             Sets the dependency scope for this
 121  
      * dependencySet.
 122  
      *             Default scope value is "runtime".
 123  
      *           
 124  
      * 
 125  
      * @param scope
 126  
      */
 127  
     public void setScope(String scope)
 128  
     {
 129  0
         this.scope = scope;
 130  0
     } //-- void setScope(String) 
 131  
 
 132  
     /**
 133  
      * Set 
 134  
      *             If set to true, this property will unpack all
 135  
      * dependencies
 136  
      *             into the specified output directory. When set to
 137  
      * false
 138  
      *             dependencies will be includes as archives
 139  
      * (jars).
 140  
      *             Default value is false.
 141  
      *           
 142  
      * 
 143  
      * @param unpack
 144  
      */
 145  
     public void setUnpack(boolean unpack)
 146  
     {
 147  0
         this.unpack = unpack;
 148  0
     } //-- void setUnpack(boolean) 
 149  
 
 150  
     /**
 151  
      * Set 
 152  
      *           Allows the specification of includes and excludes,
 153  
      * along with filtering options, for items
 154  
      *           unpacked from a dependency artifact.
 155  
      *           
 156  
      * 
 157  
      * @param unpackOptions
 158  
      */
 159  
     public void setUnpackOptions(UnpackOptions unpackOptions)
 160  
     {
 161  0
         this.unpackOptions = unpackOptions;
 162  0
     } //-- void setUnpackOptions(UnpackOptions) 
 163  
 
 164  
 
 165  0
     private String modelEncoding = "UTF-8";
 166  
 
 167  
     public void setModelEncoding( String modelEncoding )
 168  
     {
 169  0
         this.modelEncoding = modelEncoding;
 170  0
     }
 171  
 
 172  
     public String getModelEncoding()
 173  
     {
 174  0
         return modelEncoding;
 175  
     }}