1 package org.apache.maven.shared.filtering;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
31
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 private String encoding;
44
45
46
47
48 public MavenFileFilterRequest()
49 {
50
51 }
52
53
54
55
56
57
58
59
60
61
62
63
64 public MavenFileFilterRequest( File from, File to, boolean filtering, MavenProject mavenProject,
65 List<String> filters, boolean escapedBackslashesInFilePath, String encoding,
66 MavenSession mavenSession, Properties additionalProperties )
67 {
68 super( mavenProject, filters, mavenSession );
69 this.encoding = encoding;
70 this.from = from;
71 this.to = to;
72 this.filtering = filtering;
73 setAdditionalProperties( additionalProperties );
74 setEscapeWindowsPaths( escapedBackslashesInFilePath );
75 }
76
77
78
79
80
81
82 public String getEncoding()
83 {
84 return encoding;
85 }
86
87
88
89
90
91
92 public void setEncoding( String encoding )
93 {
94 this.encoding = encoding;
95 }
96
97
98
99
100 public File getFrom()
101 {
102 return from;
103 }
104
105
106
107
108 public void setFrom( File from )
109 {
110 this.from = from;
111 }
112
113
114
115
116 public File getTo()
117 {
118 return to;
119 }
120
121
122
123
124 public void setTo( File to )
125 {
126 this.to = to;
127 }
128
129
130
131
132 public boolean isFiltering()
133 {
134 return filtering;
135 }
136
137
138
139
140 public void setFiltering( boolean filtering )
141 {
142 this.filtering = filtering;
143 }
144
145 }