final Map<Object, Object> attrs = manifest.getMainAttributes();
for(final Map.Entry<Object, Object> entry : attrs.entrySet()) {
final String key = entry.getKey().toString();
if ( !BuildConstants.ATTRS_EXCLUDES.contains(key)) {
final Attribute a = new Attribute(key, entry.getValue().toString());
outManifest.addConfiguredAttribute(a);
}
if ( key.equals(BuildConstants.ATTR_MAIN_CLASS) ) {
hasMain = true;
}
}