View Javadoc

1   ////////////////////////////////////////////////////////////////////////////////
2   //
3   //                  ObjectLab is sponsoring QALab
4   //
5   // Based in London, we are world leaders in the design and development
6   // of bespoke applications for the Securities Financing markets.
7   //
8   // <a href="http://www.objectlab.co.uk/open">Click here to learn more</a>
9   //           ___  _     _           _   _          _
10  //          / _ \| |__ (_) ___  ___| |_| |    __ _| |__
11  //         | | | | '_ \| |/ _ \/ __| __| |   / _` | '_ \
12  //         | |_| | |_) | |  __/ (__| |_| |__| (_| | |_) |
13  //          \___/|_.__// |\___|\___|\__|_____\__,_|_.__/
14  //                   |__/
15  //
16  //                   http://www.ObjectLab.co.uk
17  // ---------------------------------------------------------------------------
18  //
19  //QALab is released under the GNU General Public License.
20  //
21  //QALab: Collects QA Statistics from your build over time.
22  //2005+, ObjectLab Ltd
23  //
24  //This library is free software; you can redistribute it and/or
25  //modify it under the terms of the GNU General Public
26  //License as published by the Free Software Foundation; either
27  //version 2.1 of the License, or (at your option) any later version.
28  //
29  //This library is distributed in the hope that it will be useful,
30  //but WITHOUT ANY WARRANTY; without even the implied warranty of
31  //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
32  //General Public License for more details.
33  //
34  //You should have received a copy of the GNU General Public
35  //License along with this library; if not, write to the Free Software
36  //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
37  //
38  ////////////////////////////////////////////////////////////////////////////////
39  package net.objectlab.qalab.m2;
40  
41  /**
42   * Goal which generates the QALab BuildStat chart.
43   * 
44   * @author Benoit Xhenseval
45   * @goal cobertura-chart
46   * @phase site
47   */
48  public class CoberturaChartMojo extends BuildStatChartMojo {
49      /**
50       * If true then generate a summary chart only.
51       * 
52       * @parameter default-value=true
53       */
54      private boolean summaryOnly = true;
55  
56      /**
57       * Statistic type to appear on summary chart, defaulted to
58       * 'cobertura-branch,cobertura-line'.
59       * 
60       * @parameter default-value="cobertura-branch,cobertura-line"
61       */
62      private String summaryTypes = "cobertura-branch,cobertura-line";
63  
64      /**
65       * File prefix for the charts (e.g. cobertura-) Default empty.
66       * 
67       * @parameter default-value="cobertura-"
68       */
69      private String filePrefix = null;
70  
71      /**
72       * @return the filePrefix
73       */
74      public String getFilePrefix() {
75          return filePrefix;
76      }
77  
78      /**
79       * @param filePrefix the filePrefix to set
80       */
81      public void setFilePrefix(String filePrefix) {
82          this.filePrefix = filePrefix;
83      }
84  
85      /**
86       * @return the summaryOnly
87       */
88      public boolean isSummaryOnly() {
89          return summaryOnly;
90      }
91  
92      /**
93       * @param summaryOnly the summaryOnly to set
94       */
95      public void setSummaryOnly(boolean summaryOnly) {
96          this.summaryOnly = summaryOnly;
97      }
98  
99      /**
100      * @return the summaryTypes
101      */
102     public String getSummaryTypes() {
103         return summaryTypes;
104     }
105 
106     /**
107      * @param summaryTypes the summaryTypes to set
108      */
109     public void setSummaryTypes(String summaryTypes) {
110         this.summaryTypes = summaryTypes;
111     }
112 }
113 /*
114  *                   ObjectLab is sponsoring QALab
115  * 
116  * Based in London, we are world leaders in the design and development 
117  * of bespoke applications for the securities financing markets.
118  * 
119  * <a href="http://www.objectlab.co.uk/open">Click here to learn more about us</a>
120  *           ___  _     _           _   _          _
121  *          / _ \| |__ (_) ___  ___| |_| |    __ _| |__
122  *         | | | | '_ \| |/ _ \/ __| __| |   / _` | '_ \
123  *         | |_| | |_) | |  __/ (__| |_| |__| (_| | |_) |
124  *          \___/|_.__// |\___|\___|\__|_____\__,_|_.__/
125  *                   |__/
126  *
127  *                     www.ObjectLab.co.uk
128  */