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