Skip to content

Commit

Permalink
Remove environment-specific manifest entries
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed May 2, 2024
1 parent 4111cb7 commit 0120ef5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,6 @@ private Iterable<ExtendedArchiveEntry> jarManifestSource(MavenProject project) t
main.putValue("Manifest-Version", "1.0");
main.putValue("Archiver-Version", "Provisio Archiver");
main.putValue("Created-By", "Takari Inc.");
main.putValue("Built-By", System.getProperty("user.name"));
main.putValue("Build-Jdk", System.getProperty("java.version"));
main.putValue("Specification-Title", project.getArtifactId());
main.putValue("Specification-Version", project.getVersion());
main.putValue("Implementation-Title", project.getArtifactId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import static io.takari.maven.testing.TestResources.create;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
Expand Down Expand Up @@ -105,8 +104,6 @@ public void jarCreation() throws Exception {
if (manifestEntry != null) {
InputStream is = zip1.getInputStream(manifestEntry);
Manifest p = new Manifest(is);
assertNotNull(p.getMainAttributes().getValue("Built-By"));
assertNotNull(p.getMainAttributes().getValue("Build-Jdk"));
assertEquals("1.0", p.getMainAttributes().getValue("Manifest-Version"));
assertEquals("test", p.getMainAttributes().getValue("Implementation-Title"));
assertEquals("1.0", p.getMainAttributes().getValue("Implementation-Version"));
Expand Down Expand Up @@ -286,8 +283,6 @@ public void testCustomManifestEntries() throws Exception {
try (JarFile jar = new JarFile(new File(basedir, "target/test-1.0.jar"))) {
Manifest mf = jar.getManifest();
Attributes main = mf.getMainAttributes();
assertNotNull(main.getValue("Built-By"));
assertNotNull(main.getValue("Build-Jdk"));
assertEquals("1.0", main.getValue("Manifest-Version"));
assertEquals("test", main.getValue("Implementation-Title"));
assertEquals("1.0", main.getValue("Implementation-Version"));
Expand Down

0 comments on commit 0120ef5

Please sign in to comment.