Project: AspectJ
Bug 47910 ajc -outjar jarfile does not contain MANIFEST.MF
Reported: 2003-12-02 13:35:01 | Status: resolved fixed

I call ajc -sourceroots <mydir> -outjar <my.jar> and an output file is created with a .jar extension, but it is not a valid jar file because there is no MANIFEST.MF file. I see that the text for ajc says: -outjar <file> put output classes in zip file <file> which might imply that it is supposed to be a zip file, but a parameter called - outjar which creates a zip file doesn't really make sense. If -outjar is used, the resulting file should be a valid jar file, i.e. with a META-INF/MANIFEST.MF file inside.

Files changed in fix:
ajde/testdata/JarManifestTest/src/Main.java ajde/testsrc/org/aspectj/ajde/AjdeTests.java ajde/testsrc/org/aspectj/ajde/InpathTestcase.java ajde/testsrc/org/aspectj/ajde/JarManifestTest.java ajde/testsrc/org/aspectj/ajde/ResourceCopyTestCase.java org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java