blob: 309c061987fb99090fc8256b8d81342156ae004e [file] [log] [blame]
kprice9c922d82006-08-30 22:07:19 +00001<?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
13that you can import into your workspace. </p><p> Before importing a WAR file,
14you should first determine if the WAR file contains needed <tm tmclass="special"
15tmowner="Sun Microsystems, Inc." tmtype="tm" trademark="Java">Java</tm> source
16files. When importing a WAR file into an existing Web project, the imported
17Web deployment descriptor files are either not changed or overwritten by the
18ones included in the imported WAR file, based on your response to the prompt
19that is provided. In either case, this action does <i>not</i> represent a
20merging of the two sets of deployment descriptors. </p> <p>To import the
21Web project resources in a WAR file into your workspace, complete the following
22steps:</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
27then 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
31same name as the WAR file. If you accept this choice, the project will be
32created with the same servlet version as specified by the WAR file and in
33the same location. If you want to override these settings, you can click <b>New</b> and
kpricea5ebfde2008-04-23 22:59:40 +000034specify your new settings in the Dynamic Web Project wizard.</cmd></step>
kprice9c922d82006-08-30 22:07:19 +000035<step><cmd>Click <ph><uicontrol>Finish</uicontrol></ph> to populate the Web
36project.</cmd></step>
37</steps>
38</taskbody>
39<related-links>
40<linkpool type="concept"></linkpool>
41</related-links>
42</task>