View Javadoc
1   package org.apache.maven.shared.filtering;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *    http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import java.io.File;
23  import java.io.InputStream;
24  import java.io.Reader;
25  import java.util.List;
26  import java.util.Properties;
27  
28  import org.apache.maven.execution.MavenSession;
29  import org.apache.maven.project.MavenProject;
30  
31  /**
32   * @author Olivier Lamy
33   * @author Kristian Rosenvold
34   * @since 1.0-beta-3
35   */
36  public class MavenReaderFilterRequest
37      extends AbstractMavenFilteringRequest
38  {
39  
40      private Reader from;
41  
42      private boolean filtering;
43  
44      public MavenReaderFilterRequest()
45      {
46          // nothing
47      }
48  
49      public MavenReaderFilterRequest( Reader from, boolean filtering, MavenProject mavenProject, List<String> filters,
50                                       boolean escapedBackslashesInFilePath, String encoding, MavenSession mavenSession,
51                                       Properties additionalProperties )
52      {
53          super( mavenProject, filters, encoding, mavenSession );
54          this.from = from;
55          this.filtering = filtering;
56          setAdditionalProperties( additionalProperties );
57          setEscapeWindowsPaths( escapedBackslashesInFilePath );
58      }
59  
60  
61      public Reader getFrom()
62      {
63          return from;
64      }
65  
66      public void setFrom( Reader from )
67      {
68          this.from = from;
69      }
70  
71      public boolean isFiltering()
72      {
73          return filtering;
74      }
75  
76      public void setFiltering( boolean filtering )
77      {
78          this.filtering = filtering;
79      }
80  
81  }