blob: 1e11dec9c5bb747f42333a2556585d2a35e2b767 [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 lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- /*******************************************************************************
* 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.wtp.doc.user/common.css" />
<title>WARExport</title>
</head>
<body id="tantware"><a name="tantware"><!-- --></a>
<h1 class="topictitle1">WARExport</h1>
<div><p>This task performs the same operation as the WAR file export wizard
for exporting a Web Project to a WAR file.</p>
<div class="section"><p><span class="uicontrol">Parameters</span></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th align="left" valign="top" width="17.073170731707318%" id="d0e20">Attribute</th>
<th align="left" valign="top" width="57.3170731707317%" id="d0e22">Description</th>
<th align="left" valign="top" width="25.609756097560975%" id="d0e24">Required</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="17.073170731707318%" headers="d0e20 ">WARProjectName</td>
<td align="left" valign="top" width="57.3170731707317%" headers="d0e22 ">Name of the Web Project (<em>case sensitive</em>)</td>
<td align="left" valign="top" width="25.609756097560975%" headers="d0e24 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="17.073170731707318%" headers="d0e20 ">WARExportFile</td>
<td align="left" valign="top" width="57.3170731707317%" headers="d0e22 ">Absolute path of the WAR file</td>
<td align="left" valign="top" width="25.609756097560975%" headers="d0e24 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="17.073170731707318%" headers="d0e20 ">ExportSource</td>
<td align="left" valign="top" width="57.3170731707317%" headers="d0e22 ">Whether to include source files or not</td>
<td align="left" valign="top" width="25.609756097560975%" headers="d0e24 ">No, default is <em>false</em></td>
</tr>
<tr><td align="left" valign="top" width="17.073170731707318%" headers="d0e20 ">Overwrite</td>
<td align="left" valign="top" width="57.3170731707317%" headers="d0e22 ">Whether to overwrite if the file already exists</td>
<td align="left" valign="top" width="25.609756097560975%" headers="d0e24 ">No, default is <em>false</em></td>
</tr>
</tbody>
</table>
</div>
<p><span class="uicontrol">Examples</span></p>
<ul><li>Export the project "ProjectWeb" to "ProjectWeb.war" in the C Drive: <pre>&lt;warExport WARProjectName="ProjectWeb" WARExportFile="C:\ProjectWeb.war"/&gt;</pre>
</li>
<li>Export the project "ProjectWeb" with the source files to "ProjectWeb.war"
in the C Drive: <pre>&lt;warExport WARProjectName="ProjectWeb" WARExportFile="C:\ProjectWeb.war" ExportSource="true"/&gt;</pre>
</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/ph-antj2ee.html" title="">Ant tasks for J2EE</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="../topics/tantautoappinstall.html" title="This task uses the WebSphere Rapid Deploy feature to install an application.">autoAppInstall</a></div>
<div><a href="../topics/tantappc.html" title="This task performs the same operation as the Application Client export wizard for exporting an Application Client Project to an Application Client JAR file.">AppClientExport</a></div>
<div><a href="../topics/tanteare.html" title="This task performs the same operation as the EAR file export wizard for exporting an Enterprise Application Project to an EAR file.">EARExport</a></div>
<div><a href="../topics/tantutil.html" title="(DEPRECATED) This task compresses source and/or build output of a Java project into a JAR file and places the JAR file in an Enterprise Application Project.">UtilJar</a></div>
</div>
</div></body>
</html>