Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

META-INF and MANIFEST.MF

 
André Campanini
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OSGi and Spring - These techniques / tools have something to do with the old META-INF and MANIFEST.MF?
 
Craig Walls
author
Ranch Hand
Posts: 363
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, OSGi uses that dusty old META-INF/MANIFEST.MF file. For years, that file has resided in every JAR file you've ever made, but it never received any love. But OSGi needed a place for metadata and decided to give MANIFEST.MF something to do. So, now MANIFEST.MF has found new life in OSGi.

Fortunately, given tools such as BND and Pax Construct, you almost never have to deal with the MANIFEST.MF directly. Instead you can let most of it be auto-generated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic