[Git][java-team/plexus-archiver][master] 3 commits: Default implementation of BaseFileSet.getFileMappers() to preserve the...

Emmanuel Bourg (@ebourg) gitlab at salsa.debian.org
Wed May 4 17:27:44 BST 2022



Emmanuel Bourg pushed to branch master at Debian Java Maintainers / plexus-archiver


Commits:
6d998ab1 by Emmanuel Bourg at 2022-05-04T18:13:19+02:00
Default implementation of BaseFileSet.getFileMappers() to preserve the backward compatibility (Closes #1010558)

- - - - -
bc4a9165 by Emmanuel Bourg at 2022-05-04T18:18:02+02:00
Default implementation for the new Archiver methods to preserve the backward compatibility

- - - - -
3673d3d7 by Emmanuel Bourg at 2022-05-04T18:27:28+02:00
Upload to unstable

- - - - -


3 changed files:

- debian/changelog
- debian/maven.properties
- debian/patches/06-plexus-archiver-3.6.0.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+plexus-archiver (4.2.7-2) unstable; urgency=medium
+
+  * Team upload.
+  * Improved the backward compatibility (Closes: #1010558)
+    - Default implementation of BaseFileSet.getFileMappers()
+    - Default implementation of the new Archiver methods
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Wed, 04 May 2022 18:18:14 +0200
+
 plexus-archiver (4.2.7-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/maven.properties
=====================================
@@ -1,4 +1,4 @@
 
 project.build.sourceEncoding=UTF-8
-maven.compiler.source=1.7
-maven.compiler.target=1.7
+maven.compiler.source=8
+maven.compiler.target=8


=====================================
debian/patches/06-plexus-archiver-3.6.0.patch
=====================================
@@ -35,3 +35,94 @@ Author: tony mancill <tmancill at debian.org>
      /**
       * This method wraps the input stream with the
       * corresponding decompression method
+--- a/src/main/java/org/codehaus/plexus/archiver/BaseFileSet.java
++++ b/src/main/java/org/codehaus/plexus/archiver/BaseFileSet.java
+@@ -71,6 +71,6 @@
+      * to change the filename of the included files.
+      */
+     @CheckForNull
+-    FileMapper[] getFileMappers();
++    default FileMapper[] getFileMappers() { return new FileMapper[0]; };
+ 
+ }
+--- a/src/main/java/org/codehaus/plexus/archiver/Archiver.java
++++ b/src/main/java/org/codehaus/plexus/archiver/Archiver.java
+@@ -391,12 +391,12 @@
+      * @param lastModifiedDate
+      * @since 4.2.0
+      */
+-    void setLastModifiedDate( final Date lastModifiedDate );
++    default void setLastModifiedDate( final Date lastModifiedDate ) { };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    Date getLastModifiedDate();
++    default Date getLastModifiedDate() { return null; };
+ 
+     /**
+      * Set filename comparator, used to sort file entries when scanning directories since File.list() does not
+@@ -404,47 +404,47 @@
+      *
+      * @since 4.2.0
+      */
+-    void setFilenameComparator( Comparator<String> filenameComparator );
++    default void setFilenameComparator( Comparator<String> filenameComparator ) { };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    void setOverrideUid( int uid );
++    default void setOverrideUid( int uid ) { };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    void setOverrideUserName( String userName );
++    default void setOverrideUserName( String userName ) { };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    int getOverrideUid();
++    default int getOverrideUid() { return 0; };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    String getOverrideUserName();
++    default String getOverrideUserName() { return null; };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    void setOverrideGid( int gid );
++    default void setOverrideGid( int gid ) { };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    void setOverrideGroupName( String groupName );
++    default void setOverrideGroupName( String groupName ) { };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    int getOverrideGid();
++    default int getOverrideGid() { return 0; };
+ 
+     /**
+      * @since 4.2.0
+      */
+-    String getOverrideGroupName();
++    default String getOverrideGroupName() { return null; };
+ 
+     /**
+      * Configure the archiver to create archives in a reproducible way (see
+@@ -459,5 +459,5 @@
+      * @param lastModifiedDate the date to use for archive entries last modified time
+      * @since 4.2.0
+      */
+-    void configureReproducible( Date lastModifiedDate );
++    default void configureReproducible( Date lastModifiedDate ) { };
+ }



View it on GitLab: https://salsa.debian.org/java-team/plexus-archiver/-/compare/86281fe495638f923b9d2be7dd1030ad57dde92b...3673d3d746e29c5d5bf863ca89979efc1d712d3d

-- 
View it on GitLab: https://salsa.debian.org/java-team/plexus-archiver/-/compare/86281fe495638f923b9d2be7dd1030ad57dde92b...3673d3d746e29c5d5bf863ca89979efc1d712d3d
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/20220504/bbf3ebb3/attachment.htm>


More information about the pkg-java-commits mailing list