Home
Overview
Available Tasks (General)
projectBuild
compileWorkspace
getJavacErrorCount
getProjectData
setDebugInfo
Available Tasks (J2EE)
AppClientExport
EARExport
UtilJar
WARExport
Available Tasks (EJB enabled tools only)
AccessBeanRegeneration
EJBDeploy
EJBExport
WARExport

Description

This task performs the same operation as the WAR file export wizard for exporting a Web Project to a WAR file.

Parameters
 


Attribute Description Required
WARProjectName Name of the Web Project (Case Sensitive) Yes
WARExportFile Absolute path of the WAR file. Yes
ExportSource Whether to include source files or not. No, default is false
Overwrite Whether to overwrite if the file already exists.
No, default is
false

Examples

<warExport WARProjectName="ProjectWeb" WARExportFile="C:\ProjectWeb.war"/>
Exports the project "ProjectWeb" to "ProjectWeb.war" in the C Drive. 
<warExport WARProjectName="ProjectWeb" WARExportFile="C:\ProjectWeb.war" ExportSource="true"/>
Exports the project "ProjectWeb" with the source files to "ProjectWeb.war" in the C Drive.