Home
Overview
Available Tasks
 AppClientExport
 EARExport
 EJBDeploy
 EJBExport
 UtilJar
 WARExport

UtilJar

Description

This task JARs up source and/or build output of a Java project and places the JAR file in an Enterprise Application Project.

Parameters

Attribute Description Required
EARProjectName Name of the Enterprise Application Project (Case Sensitive) Yes
JavaProjectName

Name of the Java Project (Case Sensitive)

Yes
Jar EAR Relative path of the JAR file. Yes
IncludeBinary Whether to include the binary files of the Java Project One of them must be present.
IncludeSource Whether to include the source files of the Java Project
IncludeNonJavaResources Whether to include the non-java resources of the Java Project No, default is false

Examples

<utilJar EARProjectName="EARProject" JavaProjectName="JProject" Jar="JProject.jar" IncludeSource="true"/>

Exports the project "JProject" with source files to "JProject.jar" and places the JAR file in EARProject.

<utilJar EARProjectName="EARProject" JavaProjectName="JProject" Jar="Jars/JProject.jar" IncludeBinary="true"/>

Exports the project "JProject" with binary files to "JProject.jar" and places the JAR file in EARProject/Jars.

<utilJar EARProjectName="EARProject" JavaProjecName="JProject" Jar="Jars/JProject.jar" IncludeBinary="true" IncludeSource="true"/>

Exports the project "JProject" with binary and source files to "JProject.jar" and places the JAR file in EARProject/Jars.

<utilJar EARProjectName="EARProject" JavaProjectName="JProject" Jar="Jars/JProject.jar" IncludeBinary="true" IncludeSource="true" IncludeNonJavaResources="true"/>
Exports the project "JProject" with binary files,source files and non-java resources to "JProject.jar" and places the JAR file in EARProject/Jars.