View Javadoc

1   package org.apache.maven.shared.incremental;
2   /*
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   */
20  
21  import java.io.File;
22  import java.util.HashSet;
23  import java.util.Set;
24  
25  /**
26   * @author Olivier Lamy
27   * @since 1.1
28   */
29  public class IncrementalBuildHelperRequest
30  {
31      private Set<File> inputFiles;
32  
33      private File outputDirectory;
34  
35      public IncrementalBuildHelperRequest()
36      {
37          // no op
38      }
39  
40      public Set<File> getInputFiles()
41      {
42          if ( inputFiles == null )
43          {
44              this.inputFiles = new HashSet<File>();
45          }
46          return inputFiles;
47      }
48  
49      public void setInputFiles( Set<File> inputFiles )
50      {
51          this.inputFiles = inputFiles;
52      }
53  
54      public IncrementalBuildHelperRequest inputFiles( Set<File> inputFiles )
55      {
56          this.inputFiles = inputFiles;
57          return this;
58      }
59  
60      public File getOutputDirectory()
61      {
62          return outputDirectory;
63      }
64  
65      public void setOutputDirectory( File outputDirectory )
66      {
67          this.outputDirectory = outputDirectory;
68      }
69  
70      public IncrementalBuildHelperRequest outputDirectory( File outputDirectory )
71      {
72          this.outputDirectory = outputDirectory;
73          return this;
74      }
75  }