the jar task automatically adds the Manifest-Version and Created-by attributes - they are showing up in the manifest.mf in the jar file.
-----Original Message----- From: Eddie Bernard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:41 PM To: 'Ant Users List' Subject: RE: What does a valid manifest look like? I think you may need to add the following as the first line to your manifest: Manifest-Version: 1.0 -----Original Message----- From: Steve Donie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 11:51 AM To: 'Ant-User ([EMAIL PROTECTED])' Subject: What does a valid manifest look like? Very frustrating. I have a manifest file (called MyManifest.mf) that looks like this: Name: com/lgc/infra/dsp/ Specification-Title: DecisionSpace SDK, dsp project Specification-Vendor: Landmark Graphics Corporation Specification-Version: 2003.2.0.0 Implementation-Title: DecsisionSpace Infrastructure: dsp Implementation-Vendor: Landmark Graphics Corporation Implementation-Version: 2003.2.0.0.0213.48 Name: com/lgc/infra/pres/appworks/ Specification-Title: DecisionSpace SDK Specification-Vendor: Landmark Graphics Corporation Specification-Version: 2003.2.0.0 Implementation-Title: com.lgc.infra.pres.appworks Implementation-Vendor: Landmark Graphics Corporation Implementation-Version: 2003.2.0.0.0213.48 When I incorporate that into a jar file with Ant 1.4.1: <jar jarfile="${jar}/com_lgc_dsp.jar" basedir="${classes}" whenempty="fail" manifest="${manifests}/MyManifest.mf" /> I get warnings: Building jar: E:\Work\tahoe\jar\com_lgc_dsp.jar Manifest warning: "Name" attributes should not occur in the main section and must be the first element in all other sections: "Name: com/lgc/infra/dsp/" Manifest warning: "Name" attributes should not occur in the main section and must be the first element in all other sections: "Name: com/lgc/infra/pres/appworks/" But when I remove the line "Name: com/lgc/infra/dsp/" from the manifest, I get an error! Manifest is invalid: Manifest sections should start with a "Name" attribute and not "Specification-Title" What gives? I have done all sorts of looking around at various manifest files, and the Jar specification, and the archives of ant-dev and ant-user, and I don't know what to think at this point. What does a valid manifest look like? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
msg13299/bin00000.bin
Description: application/ms-tnef
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
