blob: 705256eee31879aa318c8ba3f1eaeda04eedd0d8 [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>UtilJar</title>
</head>
<body id="tantutil"><a name="tantutil"><!-- --></a>
<h1 class="topictitle1">UtilJar</h1>
<div><p>(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.</p>
<div class="section"><div class="note"><span class="notetitle">Note:</span> This deprecated task was not removed in order to
maintain compatibility with previous versions, but it will be removed in the
future. It should no longer be required; the recommended approach is to use
the application deployment descriptor editor to map Java projects
to utility JARs. </div>
<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="15.957446808510639%" id="d0e28">Attribute</th>
<th align="left" valign="top" width="61.702127659574465%" id="d0e30">Description</th>
<th align="left" valign="top" width="22.340425531914892%" id="d0e32">Required</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="15.957446808510639%" headers="d0e28 ">EARProjectName</td>
<td align="left" valign="top" width="61.702127659574465%" headers="d0e30 ">Name of the Enterprise Application Project (<em>case sensitive</em>)</td>
<td align="left" valign="top" width="22.340425531914892%" headers="d0e32 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="15.957446808510639%" headers="d0e28 ">JavaProjectName</td>
<td align="left" valign="top" width="61.702127659574465%" headers="d0e30 ">Name of the Java Project (<em>case sensitive</em>)</td>
<td align="left" valign="top" width="22.340425531914892%" headers="d0e32 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="15.957446808510639%" headers="d0e28 ">Jar</td>
<td align="left" valign="top" width="61.702127659574465%" headers="d0e30 ">EAR relative path of the JAR file</td>
<td align="left" valign="top" width="22.340425531914892%" headers="d0e32 ">Yes</td>
</tr>
<tr><td align="left" valign="top" width="15.957446808510639%" headers="d0e28 ">IncludeSource</td>
<td align="left" valign="top" width="61.702127659574465%" headers="d0e30 ">Whether to include the source files of the Java Project</td>
<td align="left" valign="top" width="22.340425531914892%" headers="d0e32 ">No, default is <em>false</em></td>
</tr>
<tr><td align="left" valign="top" width="15.957446808510639%" headers="d0e28 ">Overwrite</td>
<td align="left" valign="top" width="61.702127659574465%" headers="d0e30 ">Whether to overwrite if the file already exists</td>
<td align="left" valign="top" width="22.340425531914892%" headers="d0e32 ">No, default is <em>false</em></td>
</tr>
</tbody>
</table>
</div>
<p><span class="uicontrol">Examples</span></p>
<ul><li>Export the project "JProject" with source files to "JProject.jar" and
place the JAR file in EARProject: <pre>&lt;utilJar EARProjectName="EARProject" JavaProjectName="JProject" Jar="JProject.jar" IncludeSource="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/tantware.html" title="This task performs the same operation as the WAR file export wizard for exporting a Web Project to a WAR file.">WARExport</a></div>
</div>
</div></body>
</html>