<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Hi folks. This is my first attempt to post to this forum. I've made a change to the build.xml file which (approximately) reproduces your manifest as a genuine manifest inside the distributable jar.<BR>
<BR>
Our software uses the Package interface to programmatically verify the version being used is adequate, and without an accurate MANIFEST.MF in the jar I can't do this. Please adopt these changes into your official source in future releases.<BR>
<BR>
The only change is near the "<jar" tag, so I'll only include the old part and the part that I fixed. Sorry for the length of text, but that's what you have to do if you want a manifest with sections in it. The first attribute set, outside the <section> tags are the most important for my needs.<BR>
<BR>
<BR>
Thanks, and here's my submission:<BR>
<BR>
<!-- the old part<BR>
<jar jarfile="${build.dir}/${name}.jar"<BR>
basedir="${build.dest}"<BR>
excludes="META-INF/MANIFEST.MF"<BR>
manifest="${build.dest}/META-INF/MANIFEST.MF"/><BR>
--><BR>
<!-- the new part --><BR>
<property name="version" value="1.0"/><BR>
<property name="vendor" value="jdom.org"/><BR>
<jar jarfile="${build.dir}/${name}.jar"><BR>
<manifest><BR>
<attribute name="Built-By" value="${user.name}"/><BR>
<!--Make something for the whole jar--><BR>
<attribute name="Specification-Title" value="JDOM Classes"/><BR>
<attribute name="Specification-Version" value="${version}"/><BR>
<attribute name="Specification-Vendor" value="${vendor}"/><BR>
<attribute name="Implementation-Title" value="org.jdom"/><BR>
<attribute name="Implementation-Version" value="${version}"/><BR>
<attribute name="Implementation-Vendor" value="${vendor}"/><BR>
<!--Make something for the individual nested packages--><BR>
<section name="org/jdom/input"><BR>
<attribute name="Specification-Title" value="JDOM input classes"/><BR>
<attribute name="Specification-Version" value="${version}"/><BR>
<attribute name="Specification-Vendor" value="${vendor}"/><BR>
<attribute name="Implementation-Title" value="org.jdom.input"/><BR>
<attribute name="Implementation-Version" value="${version}"/><BR>
<attribute name="Implementation-Vendor" value="${vendor}"/><BR>
</section><BR>
<section name="org/jdom/output"><BR>
<attribute name="Specification-Title" value="JDOM output classes"/><BR>
<attribute name="Specification-Version" value="${version}"/><BR>
<attribute name="Specification-Vendor" value="${vendor}"/><BR>
<attribute name="Implementation-Title" value="org.jdom.output"/><BR>
<attribute name="Implementation-Version" value="${version}"/><BR>
<attribute name="Implementation-Vendor" value="${vendor}"/><BR>
</section><BR>
<section name="org/jdom/output"><BR>
<attribute name="Specification-Title" value="JDOM output classes"/><BR>
<attribute name="Specification-Version" value="${version}"/><BR>
<attribute name="Specification-Vendor" value="${vendor}"/><BR>
<attribute name="Implementation-Title" value="org.jdom.output"/><BR>
<attribute name="Implementation-Version" value="${version}"/><BR>
<attribute name="Implementation-Vendor" value="${vendor}"/><BR>
</section><BR>
<section name="org/jdom/adapters"><BR>
<attribute name="Specification-Title" value="JDOM adapters classes"/><BR>
<attribute name="Specification-Version" value="${version}"/><BR>
<attribute name="Specification-Vendor" value="${vendor}"/><BR>
<attribute name="Implementation-Title" value="org.jdom.adapters"/><BR>
<attribute name="Implementation-Version" value="${version}"/><BR>
<attribute name="Implementation-Vendor" value="${vendor}"/><BR>
</section><BR>
<section name="org/jdom/filter"><BR>
<attribute name="Specification-Title" value="JDOM filter classes"/><BR>
<attribute name="Specification-Version" value="${version}"/><BR>
<attribute name="Specification-Vendor" value="${vendor}"/><BR>
<attribute name="Implementation-Title" value="org.jdom.filter"/><BR>
<attribute name="Implementation-Version" value="${version}"/><BR>
<attribute name="Implementation-Vendor" value="${vendor}"/><BR>
</section><BR>
<section name="org/jdom/transform"><BR>
<attribute name="Specification-Title" value="JDOM transform classes"/><BR>
<attribute name="Specification-Version" value="${version}"/><BR>
<attribute name="Specification-Vendor" value="${vendor}"/><BR>
<attribute name="Implementation-Title" value="org.jdom.transform"/><BR>
<attribute name="Implementation-Version" value="${version}"/><BR>
<attribute name="Implementation-Vendor" value="${vendor}"/><BR>
</section><BR>
<section name="org/jdom/xpath"><BR>
<attribute name="Specification-Title" value="JDOM xpath classes"/><BR>
<attribute name="Specification-Version" value="${version}"/><BR>
<attribute name="Specification-Vendor" value="${vendor}"/><BR>
<attribute name="Implementation-Title" value="org.jdom.xpath"/><BR>
<attribute name="Implementation-Version" value="${version}"/><BR>
<attribute name="Implementation-Vendor" value="${vendor}"/><BR>
</section><BR>
</manifest><BR>
<fileset dir="${build.dest}"><BR>
<exclude name="**/CVS*"/><BR>
<exclude name="**/*.java"/><BR>
<exclude name="META-INF/MANIFEST.MF"/><BR>
</fileset><BR>
</jar>
</BODY>
</HTML>