blob: a490ee7789e3f4b7c304fd8b3845d526b123121e [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>
<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>Exporting Web Archive (WAR) files</title>
</head>
<body id="twcrewar"><a name="twcrewar"><!-- --></a>
<h1 class="topictitle1">Exporting Web Archive (WAR) files</h1>
<div><div class="skipspace"> <p> A Web archive (WAR) file is a packaged Web application that
can be exported to test, publish, and deploy the resources developed within
a Web project.</p>
<p> <b>Note</b>: if you want to work with an existing workbench
Web project or share Web projects, we highly recommend that you use the <a href="../../org.eclipse.jst.j2eeapp.doc.user/topics/tjsharing.html"> Project
Interchange</a> feature, as this feature preserves all your metadata. </p>
<p>To
export a WAR file from a Web project, do the following: </p>
</div>
<ol><li class="skipspace"><span>Right click on a Web project folder and select <b>Export</b> from
the pop-up menu. Then select<b> WAR file</b> in the Export window and then
select <b>Next</b>.</span></li>
<li class="skipspace"><span>Specify the Web project you want to export (this field is primed
if you used the pop-up menu to open the wizard), and specify a location for
the new WAR file</span></li>
<li class="skipspace"><strong>Optional: </strong><span>Optionally, supply WAR export <span>Options</span>,
such as whether or not to include Java™ source files in the WAR, and whether
to overwrite any existing resources during the export process. </span> Source
files are not usually included in a WAR file, because they are not necessary
for the server to run the web application.</li>
<li class="skipspace"><span>Click <span><span class="uicontrol">Finish</span></span>.</span></li>
</ol>
</div>
<div><p><b class="relconceptshd">Related concepts</b><br />
<a href="cwwarovr.html">Web archive (WAR) files</a><br />
</p>
</div>
</body>
</html>