View Javadoc

1   /*
2    * Copyright (c) 2007, Ounce Labs, Inc.
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions are met:
7    *     * Redistributions of source code must retain the above copyright
8    *       notice, this list of conditions and the following disclaimer.
9    *     * Redistributions in binary form must reproduce the above copyright
10   *       notice, this list of conditions and the following disclaimer in the
11   *       documentation and/or other materials provided with the distribution.
12   *     * Neither the name of the <organization> nor the
13   *       names of its contributors may be used to endorse or promote products
14   *       derived from this software without specific prior written permission.
15   *
16   * THIS SOFTWARE IS PROVIDED BY OUNCE LABS, INC. ``AS IS'' AND ANY
17   * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18   * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19   * DISCLAIMED. IN NO EVENT SHALL OUNCE LABS, INC. BE LIABLE FOR ANY
20   * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22   * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26   */
27  package org.codehaus.mojo.ounce.core;
28  
29  import java.util.List;
30  import java.util.Map;
31  
32  public class OunceCoreProject
33  {
34      String name;
35  
36      String projectRoot;
37  
38      List sourceRoots;
39  
40      String webRoot;
41  
42      String classPath;
43  
44      String jdkName;
45  
46      String packaging;
47  
48      String compilerOptions;
49  
50      Map ounceOptions;
51  
52      public OunceCoreProject( String theName, String theProjectRoot, List theSourceRoots, String theWebRoot,
53                               String theClassPath, String theJdkName, String packaging, String theCompilerOptions,
54                               Map theOunceOptions )
55      {
56          super();
57          this.name = theName;
58          this.projectRoot = theProjectRoot;
59          this.sourceRoots = theSourceRoots;
60          this.webRoot = theWebRoot;
61          this.classPath = theClassPath;
62          this.jdkName = theJdkName;
63          this.packaging = packaging;
64          this.compilerOptions = theCompilerOptions;
65          this.ounceOptions = theOunceOptions;
66      }
67  
68      /**
69       * @return the name
70       */
71      public String getName()
72      {
73          return this.name;
74      }
75  
76      /**
77       * @return the projectRoot
78       */
79      public String getProjectRoot()
80      {
81          return this.projectRoot;
82      }
83  
84      /**
85       * @return the sourceRoots
86       */
87      public List getSourceRoots()
88      {
89          return this.sourceRoots;
90      }
91  
92      /**
93       * @return the webRoot
94       */
95      public String getWebRoot()
96      {
97          return this.webRoot;
98      }
99  
100     /**
101      * @return the classPath
102      */
103     public String getClassPath()
104     {
105         return this.classPath;
106     }
107 
108     /**
109      * @return the jdkName
110      */
111     public String getJdkName()
112     {
113         return this.jdkName;
114     }
115 
116     /**
117      * @return the packaging
118      */
119     public String getPackaging()
120     {
121         return this.packaging;
122     }
123 
124     /**
125      * @return the compilerOptions
126      */
127     public String getCompilerOptions()
128     {
129         return this.compilerOptions;
130     }
131 
132     /**
133      * @return the ounceOptions
134      */
135     public Map getOunceOptions()
136     {
137         return this.ounceOptions;
138     }
139 }