// Add libraries to classpath or extract the libraries as necessary
for (Library library : manifest.getLibraries()) {
File path = new File(getLibrariesDir(), library.getPath(context.getEnvironment()));
if (path.exists()) {
Extract extract = library.getExtract();
if (extract != null) {
ZipExtract zipExtract = new ZipExtract(
new FileResource(path), extractDir);
zipExtract.setExclude(extract.getExclude());
zipExtract.run();
} else {
builder.classPath(path);
}
}