blob: 90dfb8a965a16deeb28c82708c90782f216d314d [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Importing Web archive (WAR) files" />
<meta content="WAR files, importing" name="DC.subject" />
<meta content="WAR files, importing" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/cwwarovr.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="twimpwar" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Importing Web archive (WAR) files</title>
</head>
<body id="twimpwar"><a name="twimpwar"><!-- --></a>
<h1 class="topictitle1">Importing Web archive (WAR) files</h1>
<div>
<div class="section"> <p>A Web Archive (WAR) file is a portable, packaged Web application
that you can import into your workspace. </p>
<p> Before importing a WAR file,
you should first determine if the WAR file contains needed Java™ source
files. When importing a WAR file into an existing Web project, the imported
Web deployment descriptor files are either not changed or overwritten by the
ones included in the imported WAR file, based on your response to the prompt
that is provided. In either case, this action does <em>not</em> represent a
merging of the two sets of deployment descriptors. </p>
<p>To import the
Web project resources in a WAR file into your workspace, complete the following
steps:</p>
</div>
<ol>
<li><span>Select <span><span class="menucascade"><span class="uicontrol">File</span> &gt; <span class="uicontrol">Import</span>
</span></span>.</span></li>
<li><span> In the Import dialog, select <span><span class="uicontrol">WAR file</span></span> and
then click <span><span class="uicontrol">Next</span></span>. </span></li>
<li><span>Locate the WAR file that you want to import using the <span><span class="uicontrol">Browse</span></span> button.</span>
</li>
<li><span> The wizard assumes you want to create a new Web project with the
same name as the WAR file. If you accept this choice, the project will be
created with the same servlet version as specified by the WAR file and in
the same location. If you want to override these settings, you can click <strong>New</strong> and
specify your new settings in the Dynamic Web Project wizard.</span></li>
<li><span>Click <span><span class="uicontrol">Finish</span></span> to populate the Web
project.</span></li>
</ol>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../topics/cwwarovr.html">Web archive (WAR) files</a></div>
</div>
</div>
</body>
</html>