File tree 2 files changed +17
-2
lines changed
src/main/java/org/codehaus/plexus/components/io/resources
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 8
8
</parent >
9
9
10
10
<artifactId >plexus-io</artifactId >
11
- <version >3.1.2 -SNAPSHOT</version >
11
+ <version >3.2.0 -SNAPSHOT</version >
12
12
13
13
<name >Plexus IO Components</name >
14
14
38
38
<dependency >
39
39
<groupId >org.codehaus.plexus</groupId >
40
40
<artifactId >plexus-utils</artifactId >
41
- <version >3.1.0 </version >
41
+ <version >3.3.0-SNAPSHOT </version >
42
42
</dependency >
43
43
<dependency >
44
44
<groupId >org.codehaus.plexus</groupId >
Original file line number Diff line number Diff line change 28
28
import java .io .IOException ;
29
29
import java .io .InputStream ;
30
30
import java .util .ArrayList ;
31
+ import java .util .Comparator ;
31
32
import java .util .HashMap ;
32
33
import java .util .Iterator ;
33
34
import java .util .List ;
@@ -50,6 +51,11 @@ public class PlexusIoFileResourceCollection
50
51
51
52
private boolean isFollowingSymLinks = true ;
52
53
54
+ /**
55
+ * @since 3.2.0
56
+ */
57
+ private Comparator <String > filenameComparator ;
58
+
53
59
public PlexusIoFileResourceCollection ()
54
60
{
55
61
}
@@ -241,6 +247,7 @@ public Iterator<PlexusIoResource> getResources()
241
247
}
242
248
ds .setCaseSensitive ( isCaseSensitive () );
243
249
ds .setFollowSymlinks ( isFollowingSymLinks () );
250
+ ds .setFilenameComparator ( filenameComparator );
244
251
ds .scan ();
245
252
246
253
final List <PlexusIoResource > result = new ArrayList <>();
@@ -259,4 +266,12 @@ public boolean isConcurrentAccessSupported()
259
266
{
260
267
return true ;
261
268
}
269
+
270
+ /**
271
+ * @since 3.2.0
272
+ */
273
+ public void setFilenameComparator ( Comparator <String > filenameComparator )
274
+ {
275
+ this .filenameComparator = filenameComparator ;
276
+ }
262
277
}
You can’t perform that action at this time.
0 commit comments