[Git][java-team/plexus-io][upstream] New upstream version 3.1.1

Emmanuel Bourg gitlab at salsa.debian.org
Mon Dec 10 23:05:20 GMT 2018


Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / plexus-io


Commits:
58556bf1 by Emmanuel Bourg at 2018-12-10T23:02:32Z
New upstream version 3.1.1
- - - - -


4 changed files:

- README.md
- ReleaseNotes.md
- pom.xml
- src/main/java/org/codehaus/plexus/components/io/attributes/FileAttributes.java


Changes:

=====================================
README.md
=====================================
@@ -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).


=====================================
ReleaseNotes.md
=====================================
@@ -1,6 +1,16 @@
 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


=====================================
pom.xml
=====================================
@@ -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 at github.com:codehaus-plexus/plexus-io.git</connection>
     <developerConnection>scm:git:git at 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>


=====================================
src/main/java/org/codehaus/plexus/components/io/attributes/FileAttributes.java
=====================================
@@ -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



View it on GitLab: https://salsa.debian.org/java-team/plexus-io/commit/58556bf1a97a7e73704f15ce0f605a5e08e0d4b1

-- 
View it on GitLab: https://salsa.debian.org/java-team/plexus-io/commit/58556bf1a97a7e73704f15ce0f605a5e08e0d4b1
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20181210/dd467655/attachment.html>


More information about the pkg-java-commits mailing list