kprice | 9c922d8 | 2006-08-30 22:07:19 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
| 2 | <!--Arbortext, Inc., 1988-2005, v.4002-->
|
| 3 | <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
|
| 4 | "task.dtd">
|
| 5 | <task id="twimpwar" xml:lang="en-us">
|
| 6 | <title>Importing Web archive (WAR) files</title>
|
| 7 | <prolog><metadata>
|
| 8 | <keywords><indexterm>WAR files<indexterm>importing</indexterm></indexterm>
|
| 9 | </keywords>
|
| 10 | </metadata></prolog>
|
| 11 | <taskbody>
|
| 12 | <context> <p>A Web Archive (WAR) file is a portable, packaged Web application
|
| 13 | that you can import into your workspace. </p><p> Before importing a WAR file,
|
| 14 | you should first determine if the WAR file contains needed <tm tmclass="special"
|
| 15 | tmowner="Sun Microsystems, Inc." tmtype="tm" trademark="Java">Java</tm> source
|
| 16 | files. When importing a WAR file into an existing Web project, the imported
|
| 17 | Web deployment descriptor files are either not changed or overwritten by the
|
| 18 | ones included in the imported WAR file, based on your response to the prompt
|
| 19 | that is provided. In either case, this action does <i>not</i> represent a
|
| 20 | merging of the two sets of deployment descriptors. </p> <p>To import the
|
| 21 | Web project resources in a WAR file into your workspace, complete the following
|
| 22 | steps:</p></context>
|
| 23 | <steps>
|
| 24 | <step><cmd>Select <ph><menucascade><uicontrol>File</uicontrol><uicontrol>Import</uicontrol>
|
| 25 | </menucascade></ph>.</cmd></step>
|
| 26 | <step><cmd> In the Import dialog, select <ph><uicontrol>WAR file</uicontrol></ph> and
|
| 27 | then click <ph><uicontrol>Next</uicontrol></ph>. </cmd></step>
|
| 28 | <step><cmd>Locate the WAR file that you want to import using the <ph><uicontrol>Browse</uicontrol></ph> button.</cmd>
|
| 29 | </step>
|
| 30 | <step><cmd> The wizard assumes you want to create a new Web project with the
|
| 31 | same name as the WAR file. If you accept this choice, the project will be
|
| 32 | created with the same servlet version as specified by the WAR file and in
|
| 33 | the same location. If you want to override these settings, you can click <b>New</b> and
|
kprice | a5ebfde | 2008-04-23 22:59:40 +0000 | [diff] [blame^] | 34 | specify your new settings in the Dynamic Web Project wizard.</cmd></step>
|
kprice | 9c922d8 | 2006-08-30 22:07:19 +0000 | [diff] [blame] | 35 | <step><cmd>Click <ph><uicontrol>Finish</uicontrol></ph> to populate the Web
|
| 36 | project.</cmd></step>
|
| 37 | </steps>
|
| 38 | </taskbody>
|
| 39 | <related-links>
|
| 40 | <linkpool type="concept"></linkpool>
|
| 41 | </related-links>
|
| 42 | </task>
|