You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2019/01/28 22:22:03 UTC

[maven-archiver] branch MSHARED-797 created (now e0d5598)

This is an automated email from the ASF dual-hosted git repository.

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


      at e0d5598  [MSHARED-797] Move current Build-Jdk manifest entry to Build-Jdk-Spec

This branch includes the following new commits:

     new e0d5598  [MSHARED-797] Move current Build-Jdk manifest entry to Build-Jdk-Spec

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-archiver] 01/01: [MSHARED-797] Move current Build-Jdk manifest entry to Build-Jdk-Spec

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit e0d55983a1519da34c8d47957dff5bd9686d56f4
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Mon Jan 28 23:21:52 2019 +0100

    [MSHARED-797] Move current Build-Jdk manifest entry to Build-Jdk-Spec
---
 src/main/java/org/apache/maven/archiver/MavenArchiver.java     | 2 +-
 src/test/java/org/apache/maven/archiver/MavenArchiverTest.java | 4 ++--
 2 files changed, 3 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 329b45e..ce4d36e 100644
--- a/src/main/java/org/apache/maven/archiver/MavenArchiver.java
+++ b/src/main/java/org/apache/maven/archiver/MavenArchiver.java
@@ -508,7 +508,7 @@ public class MavenArchiver
     private void addCustomEntries( Manifest m, Map<String, String> entries, ManifestConfiguration config )
         throws ManifestException
     {
-        addManifestAttribute( m, entries, "Build-Jdk", System.getProperty( "java.specification.version" ) );
+        addManifestAttribute( m, entries, "Build-Jdk-Spec", System.getProperty( "java.specification.version" ) );
 
         /*
          * TODO: rethink this, it wasn't working Artifact projectArtifact = project.getArtifact(); if (
diff --git a/src/test/java/org/apache/maven/archiver/MavenArchiverTest.java b/src/test/java/org/apache/maven/archiver/MavenArchiverTest.java
index 7bc6a58..99c5214 100644
--- a/src/test/java/org/apache/maven/archiver/MavenArchiverTest.java
+++ b/src/test/java/org/apache/maven/archiver/MavenArchiverTest.java
@@ -500,7 +500,7 @@ public class MavenArchiverTest
         assertEquals( "Apache", manifest.get( Attributes.Name.IMPLEMENTATION_VENDOR ) );
 
         assertEquals( System.getProperty( "java.specification.version" ),
-                      manifest.get( new Attributes.Name( "Build-Jdk" ) ) );
+                      manifest.get( new Attributes.Name( "Build-Jdk-Spec" ) ) );
     }
 
     @Test
@@ -556,7 +556,7 @@ public class MavenArchiverTest
         assertEquals( "org.apache.maven.archiver", manifest.getValue( "Automatic-Module-Name" ) );
 
         assertEquals( System.getProperty( "java.specification.version" ),
-                      manifest.get( new Attributes.Name( "Build-Jdk" ) ) );
+                      manifest.get( new Attributes.Name( "Build-Jdk-Spec" ) ) );
 
         assertTrue( StringUtils.isEmpty( manifest.getValue( new Attributes.Name( "keyWithEmptyValue" ) ) ) );
         assertTrue( manifest.containsKey( new Attributes.Name( "keyWithEmptyValue" ) ) );