View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.buildcache.xml.config;
25  
26  /**
27   * Path to a directory containing files which needs to be
28   * saved/restored (relative to the build directory).
29   *             <br>
30   *             Examples :
31   *             <ul>
32   *              
33   * <li><code>&lt;dirName&gt;classes&lt;/dirName&gt;</code> : files
34   * in ${project.basedir}/target/classes</li>
35   *               <li><code>&lt;dirName
36   * glob="jacoco.xml"&gt;&lt;/dirName&gt;</code> : jacoco report
37   * files in ${project.basedir}/target</li>
38   *              
39   * <li><code>&lt;dirName&gt;../src/main/javagen&lt;/dirName&gt;</code>
40   * : files in ${project.basedir}/src/main/javagen (in this example,
41   * javagen is a folder saved in git but erased on clean) </li>
42   *             </ul>
43   *             <br><br>
44   * 
45   *             
46   * 
47   * @version $Revision$ $Date$
48   */
49  @SuppressWarnings( "all" )
50  public class DirName
51      implements java.io.Serializable
52  {
53  
54        //--------------------------/
55       //- Class/Member Variables -/
56      //--------------------------/
57  
58      /**
59       * Directory name in build output directory to attach to cached
60       * artifacts.
61       */
62      private String value;
63  
64      /**
65       * Entries are filtered by matching this glob.
66       */
67      private String glob = "*";
68  
69  
70        //-----------/
71       //- Methods -/
72      //-----------/
73  
74      /**
75       * Get entries are filtered by matching this glob.
76       * 
77       * @return String
78       */
79      public String getGlob()
80      {
81          return this.glob;
82      } //-- String getGlob()
83  
84      /**
85       * Get directory name in build output directory to attach to
86       * cached artifacts.
87       * 
88       * @return String
89       */
90      public String getValue()
91      {
92          return this.value;
93      } //-- String getValue()
94  
95      /**
96       * Set entries are filtered by matching this glob.
97       * 
98       * @param glob a glob object.
99       */
100     public void setGlob( String glob )
101     {
102         this.glob = glob;
103     } //-- void setGlob( String )
104 
105     /**
106      * Set directory name in build output directory to attach to
107      * cached artifacts.
108      * 
109      * @param value a value object.
110      */
111     public void setValue( String value )
112     {
113         this.value = value;
114     } //-- void setValue( String )
115 
116 }