Use MANIFEST.MF for application class path

WebLogic enterprise applications may have .jar and .class file dependencies in the APP-INF/lib or APP-INF/classes folders respectively. This rule detects if a given enterprise application module has such dependencies. A quick fix is available in the source scanner. The quick fix adds corresponding classpath entries into the enterprise application module MANIFEST.MF file.

For example, given the following files in the APP-INF/lib and APP-INF/classes folder in the EAR project folder:

APP-INF/lib APP-INF/classes
jarFile1.jar ClassFile1.class
jarFile2.jar ClassFile2.class
jarFile3.jar ClassFile3.class
jarFile4.jar ClassFile4.class
jarFile5.jar ClassFile5.class

Web module MANIFEST.MF file before running the quick fix:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3

WebModule MANIFEST.MF file after running the quick fix:

Manifest-Version: 1.0
Class-Path: APP-INF/lib/jarFile1.jar APP-INF/lib/jarFile2.jar APP-INF/
 lib/jarFile3.jar APP-INF/lib/jarFile4.jar APP-INF/lib/jarFile4.jar AP
 P-INF/lib/jarFile5.jar APP-INF/classes/ClassFile1.class APP-INF/lib/Cla
 assFile2.class APP-INF/lib/ClassFile3.class APP-INF/lib/ClassFile4.class
 APP-INF/lib/ClassFile5.class
Ant-Version: Apache Ant 1.5.3