Skip to content
Commits on Source (3)
......@@ -17,5 +17,6 @@ mvn -Preporting verify site site:stage scm-publish:publish-scm
You can find details about the different releases in the
[Release Notes](https://github.com/codehaus-plexus/plexus-io/blob/master/ReleaseNotes.md).
* [Release 3.1.0](https://github.com/codehaus-plexus/plexus-io/blob/master/ReleaseNotes.md#plexus-io-310).
* [Release 3.0.1](https://github.com/codehaus-plexus/plexus-io/blob/master/ReleaseNotes.md#plexus-io-301).
* [Release 3.0.0](https://github.com/codehaus-plexus/plexus-io/blob/master/ReleaseNotes.md#plexus-io-300).
Plexus-IO Release Notes
========================================================================
Plexus IO 3.1.0
---------------
Plexus IO 3.1.0 requires Java 7.
### New Features
* [Pull Request #14][pr-14] - Add new FileMapper for giving a suffix to filename:
`SuffixFileMapper`. Thanks to Thomas Collignon.
Plexus IO 3.0.1
---------------
......@@ -207,3 +217,4 @@ Plexus IO 2.0.12
[pr-1]: https://github.com/codehaus-plexus/plexus-io/pull/1
[pr-3]: https://github.com/codehaus-plexus/plexus-io/pull/3
[pr-5]: https://github.com/codehaus-plexus/plexus-io/pull/5
[pr-14]: https://github.com/codehaus-plexus/plexus-io/pull/14
plexus-io (3.1.1-1) unstable; urgency=medium
* Team upload.
* New upstream release
-- Emmanuel Bourg <ebourg@apache.org> Tue, 11 Dec 2018 00:03:31 +0100
plexus-io (3.1.0-1) unstable; urgency=medium
* Team upload.
......
......@@ -8,7 +8,7 @@
</parent>
<artifactId>plexus-io</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
<name>Plexus IO Components</name>
......@@ -16,7 +16,7 @@
<connection>scm:git:git@github.com:codehaus-plexus/plexus-io.git</connection>
<developerConnection>scm:git:git@github.com:codehaus-plexus/plexus-io.git</developerConnection>
<url>http://github.com/codehaus-plexus/plexus-io</url>
<tag>plexus-io-3.1.0</tag>
<tag>plexus-io-3.1.1</tag>
</scm>
<issueManagement>
<system>jira</system>
......
......@@ -64,7 +64,7 @@ public FileAttributes( @Nonnull File file, @Nonnull Map<Integer, String> userCac
Path path = file.toPath();
if ( AttributeUtils.isUnix( path ) )
{
Map<String, Object> attrs = Files.readAttributes( path, "unix:*", LinkOption.NOFOLLOW_LINKS );
Map<String, Object> attrs = Files.readAttributes( path, "unix:permissions,gid,uid,isSymbolicLink,mode", LinkOption.NOFOLLOW_LINKS );
this.permissions = (Set<PosixFilePermission>) attrs.get( "permissions" );
groupId = (Integer) attrs.get( "gid" );
......@@ -76,7 +76,8 @@ public FileAttributes( @Nonnull File file, @Nonnull Map<Integer, String> userCac
}
else
{
this.groupName = ( (Principal) attrs.get( "group" ) ).getName();
Object group = Files.getAttribute( path, "unix:group", LinkOption.NOFOLLOW_LINKS );
this.groupName = ( (Principal) group ).getName();
groupCache.put( groupId, this.groupName );
}
userId = (Integer) attrs.get( "uid" );
......@@ -87,7 +88,8 @@ public FileAttributes( @Nonnull File file, @Nonnull Map<Integer, String> userCac
}
else
{
this.userName = ( (Principal) attrs.get( "owner" ) ).getName();
Object owner = Files.getAttribute( path, "unix:owner", LinkOption.NOFOLLOW_LINKS );
this.userName = ( (Principal) owner ).getName();
userCache.put( userId, this.userName );
}
octalMode = (Integer) attrs.get( "mode" ) & 0xfff; // Mask off top bits for compatibilty. Maybe check if we
......