Notice: This application will enforce Multi-factor authentication (MFA) for NIH users beginning the evening of Wed Aug 3rd.
NIH | National Cancer Institute | NCI Wiki  

Contents of this Page

Link to MANIFEST.MF

Introduction

Proposed

All JAR and WAR files must have an informative MANIFEST.MF. This must be created via ANT during the product build.

Log

Date

Note

Author

May 12, 2008

Created

Larry Hebel

May 13, 2008

Feedback requested

Larry Hebel

May 26, 2008

Planned review complete

 

Template

Add the following into the project build.xml file near the top immediately after the project <description> element.

    <!-- Initialize the release and version properties -->
    <tstamp/>
    
    <property name="appl.release" value="4.0.0.0" />
    <property name="appl.version" value="${appl.release}.${DSTAMP}${TSTAMP}"/>

Add the following into the project build.xml file within the body of all WAR and JAR tasks.

    <!-- Create the MANIFEST.MF -->
    <manifest>
        <attribute name="Built-By" value="Anthill"/>
        <section name="gov/nih/nci/cadsr/(root)/">
            <attribute name="Specification-Title" value="(project)" />
            <attribute name="Specification-Version" value="${appl.release}" />
            <attribute name="Specification-Vendor" value="(company)" />
            <attribute name="Implementation-Title" value="(project)" />
            <attribute name="Implementation-Version" value="${appl.version}" />
            <attribute name="Implementation-Vendor" value="(company)" />
        </section>
    </manifest>
  • Replace (root) with the project package root, e.g. freestylesearch.
  • Replace (project) with the project name, e.g. caDSR Freestyle Search.
  • Replace (company) with the authoring company, e.g. ScenPro, Inc.
  • Note appl.release must be set manually once for the first build of a new release.
  • Note appl.version will always have the build time to the nearest minute. This avoids any external or manually setting of a build number.

References

The content for the MANIFEST.MF can be found on the SUN website Exit Disclaimer logo

 

 

  • No labels

2 Comments

  1. Unknown User (hebell)

    Should "(company)" be the name of the company which authored the implementation or "NCICB"?

  2. Unknown User (hebell)

    What are other possible values for "Built-By"?