1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.plugin.eclipse;
20
21 import org.apache.maven.plugin.ide.IdeUtils;
22
23
24
25
26
27
28
29
30 public class EclipseSourceDir
31 implements Comparable
32 {
33 private String path;
34
35 private String output;
36
37 private String include;
38
39 private String exclude;
40
41 private boolean isResource;
42
43 private boolean test;
44
45 private boolean filtering;
46
47 public EclipseSourceDir( String path, String output, boolean isResource, boolean test, String include,
48 String exclude, boolean filtering )
49 {
50 setPath( path );
51 this.output = output;
52 this.isResource = isResource;
53 this.test = test;
54 this.include = include;
55 this.exclude = exclude;
56 this.filtering = filtering;
57 }
58
59
60
61
62
63
64 public String getExclude()
65 {
66 return this.exclude;
67 }
68
69
70
71
72
73
74 public void setExclude( String exclude )
75 {
76 this.exclude = exclude;
77 }
78
79
80
81
82
83
84 public String getInclude()
85 {
86 return this.include;
87 }
88
89
90
91
92
93
94 public void setInclude( String include )
95 {
96 this.include = include;
97 }
98
99
100
101
102
103
104 public String getOutput()
105 {
106 return this.output;
107 }
108
109
110
111
112
113
114 public void setOutput( String output )
115 {
116 this.output = output;
117 }
118
119
120
121
122
123
124 public String getPath()
125 {
126 return this.path;
127 }
128
129
130
131
132
133
134
135 public void setPath( String path )
136 {
137 this.path = IdeUtils.fixSeparator( path );
138 }
139
140
141
142
143
144
145 public boolean isTest()
146 {
147 return this.test;
148 }
149
150
151
152
153
154
155 public void setTest( boolean test )
156 {
157 this.test = test;
158 }
159
160
161
162
163
164
165 public boolean isResource()
166 {
167 return this.isResource;
168 }
169
170
171
172
173 public boolean isFiltering()
174 {
175 return filtering;
176 }
177
178
179
180
181 public boolean equals( Object obj )
182 {
183 return ( obj != null ) && ( obj instanceof EclipseSourceDir )
184 && this.path.equals( ( (EclipseSourceDir) obj ).path );
185 }
186
187
188
189
190 public int hashCode()
191 {
192 return this.path.hashCode();
193 }
194
195
196
197
198 public int compareTo( Object obj )
199 {
200 return this.path.compareTo( ( (EclipseSourceDir) obj ).path );
201 }
202 }