blob: bc4a478ce0c47103a2291f067b7bd9fd342487e1 [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>
<link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" />
<title>Exporting Web Archive (WAR) files</title>
<script language="JavaScript">
function popup_window( url, id, width, height )
{
popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' );
popup.focus();
}
</script><script language="JavaScript" src="help/liveHelp.js"></script></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="../../org.eclipse.wst.webtoolscore.doc.user/topics/cwwarovr.html">Web archive (WAR) files</a><br />
</p>
</div><p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>