/** * Merge the contents of the given manifest into this manifest * without merging Class-Path attributes. * * @param other the Manifest to be merged with this one. * * @throws ManifestException if there is a problem merging the * manifest according to the Manifest spec. */ public void merge(Manifest other) throws ManifestException { merge(other, false); }
/** * Merge the contents of the given manifest into this manifest * without merging Class-Path attributes. * * @param other the Manifest to be merged with this one. * @param overwriteMain whether to overwrite the main section * of the current manifest * * @throws ManifestException if there is a problem merging the * manifest according to the Manifest spec. */ public void merge(Manifest other, boolean overwriteMain) throws ManifestException { merge(other, overwriteMain, false); }
/** * Allows the manifest for the archive file to be provided inline * in the build file rather than in an external file. * * @param newManifest an embedded manifest element * @throws ManifestException on error */ public void addConfiguredManifest(Manifest newManifest) throws ManifestException { if (configuredManifest == null) { configuredManifest = newManifest; } else { configuredManifest.merge(newManifest, false, mergeClassPaths); } savedConfiguredManifest = configuredManifest; }
if (mergeFileSetFirst) { finalManifest = new Manifest(); finalManifest.merge(filesetManifest, false, mergeClassPaths); finalManifest.merge(Manifest.getDefaultManifest(), true, mergeClassPaths); } else { finalManifest.merge(originalManifest, false, mergeClassPaths); finalManifest.merge(filesetManifest, false, mergeClassPaths); finalManifest.merge(configuredManifest, !mergeManifestsMain, mergeClassPaths); finalManifest.merge(manifest, !mergeManifestsMain, mergeClassPaths);
if ("update".equals(mode.getValue()) && manifestFile.exists()) { if (current != null) { toWrite.merge(current, false, mergeClassPaths); } else if (error != null) { throw error; toWrite.merge(nestedManifest, false, mergeClassPaths); } catch (ManifestException m) { throw new BuildException("Manifest is invalid", m, getLocation());
filesetManifest = newManifest; } else { filesetManifest.merge(newManifest, false, mergeClassPaths);