| <?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> |
| <head> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 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 |
| *******************************************************************************/ --> |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> |
| <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><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 <i>not</i> 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 class="skipspace"><span>Select <span><span class="menucascade"><span class="uicontrol">File</span> > <span class="uicontrol">Import</span></span></span>.</span></li> |
| <li class="skipspace"><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 class="skipspace"><span>Locate the WAR file that you want to import using the <span><span class="uicontrol">Browse</span></span> button.</span></li> |
| <li class="skipspace"><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 <b>New</b> and |
| |
| specify your new settings in the Dynamic Web Project wizard.</span> <p>If |
| |
| you want to import the WAR file into an existing Web project, you can select |
| |
| the project from the Web project drop-down list. Note that if you select an |
| |
| existing project, you must decide whether you want to select the setting to <b>overwrite |
| |
| existing resources without warning</b></p> |
| </li> |
| <li class="skipspace"><span>Click <span><span class="uicontrol">Finish</span></span> to populate the Web |
| |
| project.</span></li> |
| </ol> |
| <div><p><b class="relconceptshd">Related concepts</b><br /> |
| <a href="../../org.eclipse.wst.webtools.doc.user/topics/cwwarovr.html">Web archive (WAR) files</a><br /> |
| </p> |
| </div> |
| </body> |
| </html> |