View Javadoc

1   /**
2    * The MIT License
3    *
4    * Copyright 2006-2012 The Codehaus.
5    *
6    * Permission is hereby granted, free of charge, to any person obtaining a copy of
7    * this software and associated documentation files (the "Software"), to deal in
8    * the Software without restriction, including without limitation the rights to
9    * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10   * of the Software, and to permit persons to whom the Software is furnished to do
11   * so, subject to the following conditions:
12   *
13   * The above copyright notice and this permission notice shall be included in all
14   * copies or substantial portions of the Software.
15   *
16   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22   * SOFTWARE.
23   */
24  package org.codehaus.mojo.appassembler;
25  
26  import java.util.List;
27  import java.util.Properties;
28  
29  /**
30   * This class contains the generator configuration.
31   * 
32   * @author <a href="mailto:trygve.laugstol@objectware.no">Trygve Laugst&oslash;l</a>
33   *
34   */
35  public class GeneratorConfiguration
36  {
37      private String generator;
38  
39      private Properties configuration;
40  
41      /**
42       * The platforms to be included in the generator. This is currently only used in JSW generator. Options are:
43       * "linux-ppc-64", "linux-x86-32", "linux-x86-64", "macosx-ppc-32", "macosx-x86-universal-32", "solaris-sparc-32",
44       * "solaris-sparc-64", "solaris-x86-32", "windows-x86-32
45       */
46      private List includes;
47  
48      public String getGenerator ()
49      {
50          return generator;
51      }
52  
53      public void setGenerator ( String generator )
54      {
55          this.generator = generator;
56      }
57  
58      public Properties getConfiguration ()
59      {
60          return configuration;
61      }
62  
63      public void setConfiguration ( Properties configuration )
64      {
65          this.configuration = configuration;
66      }
67  
68      public String toString ()
69      {
70          return "generator = " + generator + "; configuration = " + configuration;
71      }
72  
73      public List getIncludes ()
74      {
75          return includes;
76      }
77  
78      public void setIncludes ( List includes )
79      {
80          this.includes = includes;
81      }
82  }