Coverage Report - org.apache.maven.shared.filtering.MavenFileFilterRequest
 
Classes in this File Line Coverage Branch Coverage Complexity
MavenFileFilterRequest
0%
0/18
N/A
1
 
 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.util.List;
 24  
 import java.util.Properties;
 25  
 
 26  
 import org.apache.maven.execution.MavenSession;
 27  
 import org.apache.maven.project.MavenProject;
 28  
 
 29  
 /**
 30  
  * @author <a href="mailto:olamy@apache">olamy</a>
 31  
  * @since 1.0-beta-3
 32  
  */
 33  
 public class MavenFileFilterRequest
 34  
     extends AbstractMavenFilteringRequest
 35  
 {
 36  
     
 37  
     private File from;
 38  
 
 39  
     private File to;
 40  
     
 41  
     private boolean filtering;
 42  
 
 43  
     public MavenFileFilterRequest()
 44  0
     {
 45  
         // nothing
 46  0
     }
 47  
 
 48  
     public MavenFileFilterRequest( File from, File to, boolean filtering, MavenProject mavenProject, List filters,
 49  
                                    boolean escapedBackslashesInFilePath, String encoding, MavenSession mavenSession,
 50  
                                    Properties additionalProperties )
 51  
     {
 52  0
         super( mavenProject, filters, encoding, mavenSession );
 53  0
         this.from = from;
 54  0
         this.to = to;
 55  0
         this.filtering = filtering;
 56  0
         setAdditionalProperties( additionalProperties );
 57  0
         setEscapeWindowsPaths( escapedBackslashesInFilePath );
 58  0
     }
 59  
 
 60  
 
 61  
     public File getFrom()
 62  
     {
 63  0
         return from;
 64  
     }
 65  
 
 66  
     public void setFrom( File from )
 67  
     {
 68  0
         this.from = from;
 69  0
     }
 70  
 
 71  
     public File getTo()
 72  
     {
 73  0
         return to;
 74  
     }
 75  
 
 76  
     public void setTo( File to )
 77  
     {
 78  0
         this.to = to;
 79  0
     }
 80  
 
 81  
     public boolean isFiltering()
 82  
     {
 83  0
         return filtering;
 84  
     }
 85  
 
 86  
     public void setFiltering( boolean filtering )
 87  
     {
 88  0
         this.filtering = filtering;
 89  0
     }
 90  
 
 91  
 }