Skip to content

Commit b8b12c8

Browse files
committed
Simple adaptation to plexus-io 2.7.
1 parent 61dfeb2 commit b8b12c8

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<dependency>
5757
<groupId>org.codehaus.plexus</groupId>
5858
<artifactId>plexus-io</artifactId>
59-
<version>2.6.1</version>
59+
<version>2.7</version>
6060
</dependency>
6161
<dependency>
6262
<groupId>org.apache.commons</groupId>

src/main/java/org/codehaus/plexus/archiver/tar/PlexusIoTarFileResourceCollection.java

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ public void close()
4848

4949
}
5050

51+
@Override
52+
public boolean isConcurrentAccessSupported()
53+
{
54+
return false;
55+
}
56+
5157
protected Iterator<PlexusIoResource> getEntries()
5258
throws IOException
5359
{

src/main/java/org/codehaus/plexus/archiver/zip/PlexusArchiverZipFileResourceCollection.java

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ protected Iterator<PlexusIoResource> getEntries()
3636
return new CloseableIterator( zipFile );
3737
}
3838

39+
@Override
40+
public boolean isConcurrentAccessSupported()
41+
{
42+
// Well maybe someday investigate if we can do concurrent zip
43+
return false;
44+
}
45+
3946
class CloseableIterator
4047
implements Iterator<PlexusIoResource>, Closeable
4148
{

src/main/java/org/codehaus/plexus/archiver/zip/PlexusIoZipFileResourceCollection.java

+7
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ public PlexusIoZipFileResourceCollection()
5454

5555
}
5656

57+
@Override
58+
public boolean isConcurrentAccessSupported()
59+
{
60+
// Maybe we could support concurrent some time in the future
61+
return false;
62+
}
63+
5764
protected Iterator<PlexusIoResource> getEntries()
5865
throws IOException
5966
{

0 commit comments

Comments
 (0)