/******************************************************************************* * Copyright (c) 2003, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.jst.j2ee.internal.project; import java.io.IOException; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; import org.eclipse.jem.util.emf.workbench.WorkbenchByteArrayOutputStream; /** * * @deprecated - see {@link org.eclipse.jst.common.internal.modulecore.util.ManifestUtilities */ @Deprecated public class ManifestFileCreationAction { public static final String MANIFEST_HEADER = "Manifest-Version: 1.0\r\nClass-Path: \r\n\r\n"; //$NON-NLS-1$ /** * Constructor for ManifestFileCreationAction. */ @Deprecated public ManifestFileCreationAction() { super(); } /** * * @deprecated - see {@link org.eclipse.jst.common.internal.modulecore.ManifestUtilities.createManifestFile(IFile file) */ public static void createManifestFile(IFile file, IProject aJ2EEProject) throws CoreException, IOException { try { WorkbenchByteArrayOutputStream out = new WorkbenchByteArrayOutputStream(file); out.write(MANIFEST_HEADER.getBytes()); out.close(); } catch (IOException ioe) { throw ioe; } } }