Why does MANIFEST.MF file contain information about the other files that are packaged in the archive?

54 views Asked by At

I was still confused about why would MANIFEST.MF file contain info about other files that are packaged in the archive. I read this tutorial on manifest and they have not explained why it contain info about other files.

Ta

1

There are 1 answers

2
Peter Lawrey On

The quote is

The manifest can also contain information about the other files that are packaged in the archive. Exactly what file information should be recorded in the manifest depends on how you intend to use the JAR file. The default manifest makes no assumptions about what information it should record about other files.

The point being it doesn't have to but it might.

For example, OSGi stores information about package versions and dependencies.