* Adds any class path from the manifest.
*/
protected void addManifestClassPath()
throws IOException
{
DynamicClassLoader loader = Environment.getDynamicClassLoader();
if (loader == null)
return;
Manifest manifest = getManifest();
if (manifest == null)
return;
Attributes main = manifest.getMainAttributes();
if (main == null)
return;
String classPath = main.getValue("Class-Path");
Path pwd = null;
if (getArchivePath() != null)
pwd = getArchivePath().getParent();
else
pwd = getRootDirectory();
if (classPath == null) {
}
else if (_manifestLoader != null)
_manifestLoader.addManifestClassPath(classPath, pwd);
else
loader.addManifestClassPath(classPath, pwd);
}