Coverage Report - org.apache.maven.model.Build
 
Classes in this File Line Coverage Branch Coverage Complexity
Build
3%
1/29
0%
0/10
1,357
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.0.1 on 2009-03-28 16:09:53,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.model;
 9  
 
 10  
 /**
 11  
  * 
 12  
  *         
 13  
  *         The <code>&lt;build&gt;</code> element contains
 14  
  * informations required to build the project.
 15  
  *         
 16  
  *       
 17  
  * 
 18  
  * @version $Revision$ $Date$
 19  
  */
 20  4
 public class Build
 21  
     extends BuildBase
 22  
     implements java.io.Serializable
 23  
 {
 24  
 
 25  
       //--------------------------/
 26  
      //- Class/Member Variables -/
 27  
     //--------------------------/
 28  
 
 29  
     /**
 30  
      * This element specifies a directory containing the source of
 31  
      * the project. The
 32  
      *             generated build system will compile the source
 33  
      * in this directory when the project is
 34  
      *             built. The path given is relative to the project
 35  
      * descriptor.
 36  
      */
 37  
     private String sourceDirectory;
 38  
 
 39  
     /**
 40  
      * This element specifies a directory containing the script
 41  
      * sources of the
 42  
      *             project. This directory is meant to be different
 43  
      * from the sourceDirectory, in that its
 44  
      *             contents will be copied to the output directory
 45  
      * in most cases (since scripts are
 46  
      *             interpreted rather than compiled).
 47  
      */
 48  
     private String scriptSourceDirectory;
 49  
 
 50  
     /**
 51  
      * This element specifies a directory containing the unit test
 52  
      * source of the
 53  
      *             project. The generated build system will compile
 54  
      * these directories when the project is
 55  
      *             being tested. The path given is relative to the
 56  
      * project descriptor.
 57  
      */
 58  
     private String testSourceDirectory;
 59  
 
 60  
     /**
 61  
      * The directory where compiled application classes are placed.
 62  
      */
 63  
     private String outputDirectory;
 64  
 
 65  
     /**
 66  
      * The directory where compiled test classes are placed.
 67  
      */
 68  
     private String testOutputDirectory;
 69  
 
 70  
     /**
 71  
      * Field extensions.
 72  
      */
 73  
     private java.util.List/*<Extension>*/ extensions;
 74  
 
 75  
 
 76  
       //-----------/
 77  
      //- Methods -/
 78  
     //-----------/
 79  
 
 80  
     /**
 81  
      * Method addExtension.
 82  
      * 
 83  
      * @param extension
 84  
      */
 85  
     public void addExtension( Extension extension )
 86  
     {
 87  0
         if ( !(extension instanceof Extension) )
 88  
         {
 89  0
             throw new ClassCastException( "Build.addExtensions(extension) parameter must be instanceof " + Extension.class.getName() );
 90  
         }
 91  0
         getExtensions().add( extension );
 92  0
     } //-- void addExtension( Extension )
 93  
 
 94  
     /**
 95  
      * Method getExtensions.
 96  
      * 
 97  
      * @return List
 98  
      */
 99  
     public java.util.List/*<Extension>*/ getExtensions()
 100  
     {
 101  0
         if ( this.extensions == null )
 102  
         {
 103  0
             this.extensions = new java.util.ArrayList/*<Extension>*/();
 104  
         }
 105  
 
 106  0
         return this.extensions;
 107  
     } //-- java.util.List/*<Extension>*/ getExtensions()
 108  
 
 109  
     /**
 110  
      * Get the directory where compiled application classes are
 111  
      * placed.
 112  
      * 
 113  
      * @return String
 114  
      */
 115  
     public String getOutputDirectory()
 116  
     {
 117  0
         return this.outputDirectory;
 118  
     } //-- String getOutputDirectory()
 119  
 
 120  
     /**
 121  
      * Get this element specifies a directory containing the script
 122  
      * sources of the
 123  
      *             project. This directory is meant to be different
 124  
      * from the sourceDirectory, in that its
 125  
      *             contents will be copied to the output directory
 126  
      * in most cases (since scripts are
 127  
      *             interpreted rather than compiled).
 128  
      * 
 129  
      * @return String
 130  
      */
 131  
     public String getScriptSourceDirectory()
 132  
     {
 133  0
         return this.scriptSourceDirectory;
 134  
     } //-- String getScriptSourceDirectory()
 135  
 
 136  
     /**
 137  
      * Get this element specifies a directory containing the source
 138  
      * of the project. The
 139  
      *             generated build system will compile the source
 140  
      * in this directory when the project is
 141  
      *             built. The path given is relative to the project
 142  
      * descriptor.
 143  
      * 
 144  
      * @return String
 145  
      */
 146  
     public String getSourceDirectory()
 147  
     {
 148  0
         return this.sourceDirectory;
 149  
     } //-- String getSourceDirectory()
 150  
 
 151  
     /**
 152  
      * Get the directory where compiled test classes are placed.
 153  
      * 
 154  
      * @return String
 155  
      */
 156  
     public String getTestOutputDirectory()
 157  
     {
 158  0
         return this.testOutputDirectory;
 159  
     } //-- String getTestOutputDirectory()
 160  
 
 161  
     /**
 162  
      * Get this element specifies a directory containing the unit
 163  
      * test source of the
 164  
      *             project. The generated build system will compile
 165  
      * these directories when the project is
 166  
      *             being tested. The path given is relative to the
 167  
      * project descriptor.
 168  
      * 
 169  
      * @return String
 170  
      */
 171  
     public String getTestSourceDirectory()
 172  
     {
 173  0
         return this.testSourceDirectory;
 174  
     } //-- String getTestSourceDirectory()
 175  
 
 176  
     /**
 177  
      * Method removeExtension.
 178  
      * 
 179  
      * @param extension
 180  
      */
 181  
     public void removeExtension( Extension extension )
 182  
     {
 183  0
         if ( !(extension instanceof Extension) )
 184  
         {
 185  0
             throw new ClassCastException( "Build.removeExtensions(extension) parameter must be instanceof " + Extension.class.getName() );
 186  
         }
 187  0
         getExtensions().remove( extension );
 188  0
     } //-- void removeExtension( Extension )
 189  
 
 190  
     /**
 191  
      * Set a set of build extensions to use from this project.
 192  
      * 
 193  
      * @param extensions
 194  
      */
 195  
     public void setExtensions( java.util.List/*<Extension>*/ extensions )
 196  
     {
 197  0
         this.extensions = extensions;
 198  0
     } //-- void setExtensions( java.util.List )
 199  
 
 200  
     /**
 201  
      * Set the directory where compiled application classes are
 202  
      * placed.
 203  
      * 
 204  
      * @param outputDirectory
 205  
      */
 206  
     public void setOutputDirectory( String outputDirectory )
 207  
     {
 208  0
         this.outputDirectory = outputDirectory;
 209  0
     } //-- void setOutputDirectory( String )
 210  
 
 211  
     /**
 212  
      * Set this element specifies a directory containing the script
 213  
      * sources of the
 214  
      *             project. This directory is meant to be different
 215  
      * from the sourceDirectory, in that its
 216  
      *             contents will be copied to the output directory
 217  
      * in most cases (since scripts are
 218  
      *             interpreted rather than compiled).
 219  
      * 
 220  
      * @param scriptSourceDirectory
 221  
      */
 222  
     public void setScriptSourceDirectory( String scriptSourceDirectory )
 223  
     {
 224  0
         this.scriptSourceDirectory = scriptSourceDirectory;
 225  0
     } //-- void setScriptSourceDirectory( String )
 226  
 
 227  
     /**
 228  
      * Set this element specifies a directory containing the source
 229  
      * of the project. The
 230  
      *             generated build system will compile the source
 231  
      * in this directory when the project is
 232  
      *             built. The path given is relative to the project
 233  
      * descriptor.
 234  
      * 
 235  
      * @param sourceDirectory
 236  
      */
 237  
     public void setSourceDirectory( String sourceDirectory )
 238  
     {
 239  0
         this.sourceDirectory = sourceDirectory;
 240  0
     } //-- void setSourceDirectory( String )
 241  
 
 242  
     /**
 243  
      * Set the directory where compiled test classes are placed.
 244  
      * 
 245  
      * @param testOutputDirectory
 246  
      */
 247  
     public void setTestOutputDirectory( String testOutputDirectory )
 248  
     {
 249  0
         this.testOutputDirectory = testOutputDirectory;
 250  0
     } //-- void setTestOutputDirectory( String )
 251  
 
 252  
     /**
 253  
      * Set this element specifies a directory containing the unit
 254  
      * test source of the
 255  
      *             project. The generated build system will compile
 256  
      * these directories when the project is
 257  
      *             being tested. The path given is relative to the
 258  
      * project descriptor.
 259  
      * 
 260  
      * @param testSourceDirectory
 261  
      */
 262  
     public void setTestSourceDirectory( String testSourceDirectory )
 263  
     {
 264  0
         this.testSourceDirectory = testSourceDirectory;
 265  0
     } //-- void setTestSourceDirectory( String )
 266  
 
 267  
 
 268  
 }