WARExport
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
- Export the project "ProjectWeb" to "ProjectWeb.war" in the C Drive:
<warExport WARProjectName="ProjectWeb" WARExportFile="C:\ProjectWeb.war"/>- Export the project "ProjectWeb" with the source files to "ProjectWeb.war" in the C Drive:
<warExport WARProjectName="ProjectWeb" WARExportFile="C:\ProjectWeb.war" ExportSource="true"/>
Parent topic
Working with Ant
Related tasks
autoAppInstall
AppClientExport
EARExport
UtilJar