maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject [maven-archiver] 01/01: Enforce 'XXX'
Date Sun, 06 Oct 2019 19:06:45 GMT
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch MSHARED-837_SDF
in repository https://gitbox.apache.org/repos/asf/maven-archiver.git

commit 2f45473f180cbd1fdc2b828095e2f0e57d077a0e
Author: Michael Osipov <michaelo@apache.org>
AuthorDate: Sun Oct 6 21:06:24 2019 +0200

    Enforce 'XXX'
---
 src/main/java/org/apache/maven/archiver/MavenArchiver.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/maven/archiver/MavenArchiver.java b/src/main/java/org/apache/maven/archiver/MavenArchiver.java
index 82cd3a9..b51f3f1 100644
--- a/src/main/java/org/apache/maven/archiver/MavenArchiver.java
+++ b/src/main/java/org/apache/maven/archiver/MavenArchiver.java
@@ -728,7 +728,7 @@ public class MavenArchiver
 
     /**
      * Define a value for "Created By" entry.
-     * 
+     *
      * @param description description of the plugin, like "Maven Source Plugin"
      * @param groupId groupId where to get version in pom.properties
      * @param artifactId artifactId where to get version in pom.properties
@@ -753,7 +753,7 @@ public class MavenArchiver
     /**
      * Add "Build-Jdk-Spec" entry as part of default manifest entries (true by default).
      * For plugins whose output is not impacted by JDK release (like maven-source-plugin),
adding
-     * Jdk spec adds unnecessary requirement on JDK version used at build to get reproducible
result. 
+     * Jdk spec adds unnecessary requirement on JDK version used at build to get reproducible
result.
      *
      * @since 3.4.1
      */
@@ -780,7 +780,8 @@ public class MavenArchiver
             return null;
         }
 
-        DateFormat df = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ssX" ); 
+        DateFormat df = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ssXXX" );
+        df.setLenient( false );
         try
         {
             return df.parse( outputTimestamp );


Mime
View raw message