[ 
http://jira.codehaus.org/browse/MRM-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=238107#action_238107
 ] 

Chris Graham commented on MRM-1425:
-----------------------------------

It is good practice to definatively label/version everything. However, for my 
purposes, I only need the war file itself versioned. Then I can do this:

        JarFile jf = new JarFile("archiva.war");
        Manifest manifest = jf.getManifest();
        jf.close();
        String implementationVersion = 
manifest.getMainAttributes().getValue("Implementation-Version");
        System.out.println("implementationVersion = " + implementationVersion);

I know that archiva is distributed as a versioned named war file, but I can not 
rely upon people not renaming it.

Yes, it's trivially simple to do:

                    <configuration>
                        <archive>
                            <addMavenDescriptor>true/addMavenDescriptor>
                            <manifest>
                                
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                                
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                            </manifest>
                        </archive>
                    </configuration>

> Add Implementation details to MANIFEST.MF
> -----------------------------------------
>
>                 Key: MRM-1425
>                 URL: http://jira.codehaus.org/browse/MRM-1425
>             Project: Archiva
>          Issue Type: Improvement
>          Components: Web Interface
>    Affects Versions: 1.3.2
>         Environment: NA.
>            Reporter: Chris Graham
>            Priority: Trivial
>
> Could we please add the implementation information, derived from the pom into 
> the manifest.mf file?
> Specifically, I'm looking for: Implementation-Version. This allows my 
> deployment scripts to determine the version being installed.

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to