You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kenneth McKnight <km...@vitria.com> on 2006/09/07 00:58:21 UTC

Trouble getting a merged inline and external manifest

I'm having trouble getting a merged inline and external manifest using
the 'jar' task in ant 1.6.5. The manual says for the <jar> task:

"If both an inline manifest and an external file are both specified, the
manifests are merged."

Here's a code snippet: 

<jar destfile="${dst.file}" manifest="${manifest.file}">
   <!-- Create standard manifest -->
   <manifest>
      <section name="${company.name}">
         <attribute name="Product-Version"
value="${bw.product.version}"/>
         <attribute name="Build-Date" value="${build.timestamp}"/>
         <attribute name="Build-Number" value="${label}"/>
      </section>
   </manifest>
   <!-- Specify files to be included in the META-INF directory  -->
   <metainf refid="metainf.fileset"/>
   <!-- Source includes/excludes passed in from calling build file -->
   <fileset refid="archive.fileset"/>
</jar>

What I get is just the content from ${manifest.file}. Any ideas why the
nested manifest section isn't getting merged?

ken :)
~~~~~~~~~~~~~~~~~~~~~~~
Kenneth J. Mc Knight
Sr. Staff Release Engineer
Release Engineering
Vitria Technology, Inc.
945 Stewart Dr.
Sunnyvale, CA  94085-3913
+1.408.212.2346

mailto:kmcknight@vitria.com
http://www.vitria.com
~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org