You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/09/05 16:02:10 UTC

[jira] Updated: (MAVEN-789) Add ability to include user specified Manifest entries.

The following issue has been updated:

    Updater: Berin Loritsch (mailto:bloritsch@apache.org)
       Date: Fri, 5 Sep 2003 9:01 AM
    Comment:
The attached patch to the plugin.jelly script for the maven-jar-plugin will
allow you to add arbitrary values to the manifest--complete with sections
which will make the sealing of classes/packages possible.  The new values
are added like this:


maven.jar.manifest.attributes.list = GUIApp-Conf,GUIApp-Instrument,GUIApp-Log
maven.jar.manifest.attribute.GUIApp-Conf = org/d_haven/demoapp/DemoApp.xconf
maven.jar.manifest.attribute.GUIApp-Instrument = org/d_haven/demoapp/DemoApp.instruments
maven.jar.manifest.attribute.GUIApp-Log = org/d_haven/demoapp/DemoApp.xlog

maven.jar.manifest.groups.list = DemoAppConstants,ValidateQuitApplication
maven.jar.manifest.DemoAppConstants.name=org/d_haven/demoapp/DemoAppConstants.class
maven.jar.manifest.DemoAppConstants.attributes.list=Description,Foo
maven.jar.manifest.DemoAppConstants.attribute.Description=It's ok
maven.jar.manifest.DemoAppConstants.attribute.Foo=bar

maven.jar.manifest.ValidateQuitApplication.name=org/d_haven/demoapp/screens/ValidateQuitApplication.class
maven.jar.manifest.ValidateQuitApplication.attributes.list=Description
maven.jar.manifest.ValidateQuitApplication.attribute.Description=We are rockin'

This will add to the Maven generated Manifest like this:

.... skip maven generated content ....
GUIApp-Conf: org/d_haven/demoapp/DemoApp.xconf
GUIApp-Instrument: org/d_haven/demoapp/DemoApp.instruments
GUIApp-Log: org/d_haven/demoapp/DemoApp.xlog

Name: org/d_haven/demoapp/DemoAppConstants.class
Description: It's ok
Foo: bar

Name: org/d_haven/demoapp/screens/ValidateQuitApplication.class
Description: We are rockin'



Please note that all the existing functionality has been preserved.  We are
only adding the ability to add sections and attributes of our own design.
I personally don't like having to specify these things in property format,
but I don't know much about extending the POM so I can't propose a nicer
format.  Anyway, this makes it easy for plugins to add new attributes, etc. 
    Changes:
             Attachment changed to jar-plugin.diff
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-789&page=history

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-789


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-789
    Summary: Add ability to include user specified Manifest entries.
       Type: Improvement

     Status: Unassigned
   Priority: Major

 Time Spent: Unknown
  Remaining: 0 minutes

    Project: maven
 Components: 
             plugin-jar
   Versions:
             1.0-beta-10

   Assignee: 
   Reporter: Berin Loritsch

    Created: Fri, 5 Sep 2003 8:59 AM
    Updated: Fri, 5 Sep 2003 9:01 AM

Description:
The current JAR plugin provides you with a number of neat options for standardizing all the information in the JARs it creates.  Unfortunately, there is no obvious way to add your own entries to it.  There is also no support for sections.  I have a patch that will allow all of this to happen--without sacrificing the standard JAR entries or current functionality.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org