ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenneth McKnight" <kmckni...@vitria.com>
Subject Trouble getting a merged inline and external manifest
Date Wed, 06 Sep 2006 22:58:21 GMT
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


Mime
View raw message