| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//IETF//DTD HTML 4.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html><head> |
| <!-- /******************************************************************************* |
| * Copyright (c) 2000, 2006 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><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 class="stepexpand"><span>Select <span><span class="menucascade"><b>File</b> > <b>Import</b></span></span>.</span></li> |
| <li class="stepexpand"><span> In the Import dialog, select <span><b>WAR file</b></span> and |
| then click <span><b>Next</b></span>. </span></li> |
| <li class="stepexpand"><span>Locate the WAR file that you want to import using the <span><b>Browse</b></span> button.</span></li> |
| <li class="stepexpand"><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> <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 <strong>overwrite |
| existing resources without warning</strong></p> |
| </li> |
| <li class="stepexpand"><span>Click <span><b>Finish</b></span> to populate the Web |
| project.</span></li> |
| </ol> |
| </div> |
| <div><div class="relconcepts"><strong>Related concepts</strong><br> |
| <div><a href="cwwarovr.html">Web archive (WAR) files</a></div> |
| </div> |
| </div> |
| </body></html> |