1 /*******************************************************************************
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.jdt.ui.jarpackager;
13 import java.util.jar.Manifest;
15 import org.eclipse.core.runtime.CoreException;
18 * A manifest provider creates manifest files.
20 * Clients may implement this interface.
22 * @see java.util.jar.Manifest
25 public interface IManifestProvider {
28 * Creates a manifest as defined by the <code>JarPackage</code>.
30 * @param jarPackage the JAR package specification
31 * @return the created manifest
32 * @throws CoreException if access to any resource described by the JAR package has failed
34 Manifest create(JarPackageData jarPackage) throws CoreException;
37 * Creates a default manifest.
39 * @param manifestVersion a string denoting the manifest version
40 * @return the created manifest
42 Manifest createDefault(String manifestVersion);