01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.ui.jarpackager;
11:
12: import java.util.jar.Manifest;
13:
14: import org.eclipse.core.runtime.CoreException;
15:
16: /**
17: * A manifest provider creates manifest files.
18: *
19: * Clients may implement this interface.
20: *
21: * @see java.util.jar.Manifest
22: * @since 2.0
23: */
24: public interface IManifestProvider {
25:
26: /**
27: * Creates a manifest as defined by the <code>JarPackage</code>.
28: *
29: * @param jarPackage the JAR package specification
30: * @return the created manifest
31: * @throws CoreException if access to any resource described by the JAR package has failed
32: */
33: Manifest create(JarPackageData jarPackage) throws CoreException;
34:
35: /**
36: * Creates a default manifest.
37: *
38: * @param manifestVersion a string denoting the manifest version
39: * @return the created manifest
40: */
41: Manifest createDefault(String manifestVersion);
42: }
|