Skip to content

Commit 5da37a1

Browse files
committed
Make JarArchiver#createManifest protected
That would allow subclasses of `JarArchiver` to update or inspect the manifest file that is going to be added to the archive. Closes #99
1 parent a1a4ce3 commit 5da37a1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java

+10-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,16 @@ protected boolean hasVirtualFiles()
319319
|| super.hasVirtualFiles();
320320
}
321321

322-
private Manifest createManifest()
322+
/**
323+
* Creates the manifest to be added to the JAR archive.
324+
* Sub-classes may choose to override this method
325+
* in order to inspect or modify the JAR manifest file.
326+
*
327+
* @return the manifest for the JAR archive.
328+
*
329+
* @throws ArchiverException
330+
*/
331+
protected Manifest createManifest()
323332
throws ArchiverException
324333
{
325334
Manifest finalManifest = Manifest.getDefaultManifest();

0 commit comments

Comments
 (0)