????
| Current Path : /opt/ant/manual/api/org/apache/tools/ant/taskdefs/ |
| Current File : //opt/ant/manual/api/org/apache/tools/ant/taskdefs/SignJar.html |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Tue May 22 06:24:52 CEST 2012 -->
<title>SignJar (Apache Ant API)</title>
<meta name="date" content="2012-05-22">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SignJar (Apache Ant API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/tools/ant/taskdefs/Sleep.html" title="class in org.apache.tools.ant.taskdefs"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/tools/ant/taskdefs/SignJar.html" target="_top">Frames</a></li>
<li><a href="SignJar.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.tools.ant.taskdefs</div>
<h2 title="Class SignJar" class="title">Class SignJar</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html" title="class in org.apache.tools.ant.taskdefs">org.apache.tools.ant.taskdefs.AbstractJarSignerTask</a></li>
<li>
<ul class="inheritance">
<li>org.apache.tools.ant.taskdefs.SignJar</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.lang.Cloneable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">SignJar</span>
extends <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html" title="class in org.apache.tools.ant.taskdefs">AbstractJarSignerTask</a></pre>
<div class="block">Signs JAR or ZIP files with the javasign command line tool. The tool detailed
dependency checking: files are only signed if they are not signed. The
<tt>signjar</tt> attribute can point to the file to generate; if this file
exists then its modification date is used as a cue as to whether to resign
any JAR file.
Timestamp driven signing is based on the unstable and inadequately documented
information in the Java1.5 docs</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.1</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://java.sun.com/j2se/1.5.0/docs/guide/security/time-of-signing-beta1.html">
beta documentation</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.io.File</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#destDir">destDir</a></strong></code>
<div class="block">the output directory when using paths.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#ERROR_BAD_MAP">ERROR_BAD_MAP</a></strong></code>
<div class="block">error string for unit test verification: "Cannot map source file to anything sensible: "</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#ERROR_MAPPER_WITHOUT_DEST">ERROR_MAPPER_WITHOUT_DEST</a></strong></code>
<div class="block">error string for unit test verification: "The destDir attribute is required if a mapper is set"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#ERROR_NO_ALIAS">ERROR_NO_ALIAS</a></strong></code>
<div class="block">error string for unit test verification: "alias attribute must be set"</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#ERROR_NO_STOREPASS">ERROR_NO_STOREPASS</a></strong></code>
<div class="block">error string for unit test verification: "storepass attribute must be set"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#ERROR_SIGNEDJAR_AND_PATHS">ERROR_SIGNEDJAR_AND_PATHS</a></strong></code>
<div class="block">error string for unit test verification "You cannot specify the signed JAR when using paths or filesets"</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#ERROR_TODIR_AND_SIGNEDJAR">ERROR_TODIR_AND_SIGNEDJAR</a></strong></code>
<div class="block">error string for unit test verification: "\'destdir\' and \'signedjar\' cannot both be set"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#ERROR_TOO_MANY_MAPPERS">ERROR_TOO_MANY_MAPPERS</a></strong></code>
<div class="block">error string for unit test verification: "Too many mappers"</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#internalsf">internalsf</a></strong></code>
<div class="block">flag for internal sf signing</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#lazy">lazy</a></strong></code>
<div class="block">Whether to assume a jar which has an appropriate .SF file in is already
signed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#sectionsonly">sectionsonly</a></strong></code>
<div class="block">sign sections only?</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#sigfile">sigfile</a></strong></code>
<div class="block">name to a signature file</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.io.File</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#signedjar">signedjar</a></strong></code>
<div class="block">name of a single jar</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#tsacert">tsacert</a></strong></code>
<div class="block">alias for the TSA in the keystore</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#tsaurl">tsaurl</a></strong></code>
<div class="block">URL for a tsa; null implies no tsa support</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.taskdefs.AbstractJarSignerTask">
<!-- -->
</a>
<h3>Fields inherited from class org.apache.tools.ant.taskdefs.<a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html" title="class in org.apache.tools.ant.taskdefs">AbstractJarSignerTask</a></h3>
<code><a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#alias">alias</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#ERROR_NO_SOURCE">ERROR_NO_SOURCE</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#filesets">filesets</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#jar">jar</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#JARSIGNER_COMMAND">JARSIGNER_COMMAND</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#keypass">keypass</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#keystore">keystore</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#maxMemory">maxMemory</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#storepass">storepass</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#storetype">storetype</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#verbose">verbose</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.Task">
<!-- -->
</a>
<h3>Fields inherited from class org.apache.tools.ant.<a href="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></h3>
<code><a href="../../../../../org/apache/tools/ant/Task.html#target">target</a>, <a href="../../../../../org/apache/tools/ant/Task.html#taskName">taskName</a>, <a href="../../../../../org/apache/tools/ant/Task.html#taskType">taskType</a>, <a href="../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent">
<!-- -->
</a>
<h3>Fields inherited from class org.apache.tools.ant.<a href="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</a></h3>
<code><a href="../../../../../org/apache/tools/ant/ProjectComponent.html#description">description</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#location">location</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#SignJar()">SignJar</a></strong>()</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#add(org.apache.tools.ant.util.FileNameMapper)">add</a></strong>(<a href="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</a> newMapper)</code>
<div class="block">add a mapper to determine file naming policy.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#execute()">execute</a></strong>()</code>
<div class="block">sign the jar(s)</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#getDigestAlg()">getDigestAlg</a></strong>()</code>
<div class="block">Digest Algorithm; optional</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#getMapper()">getMapper</a></strong>()</code>
<div class="block">get the active mapper; may be null</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#getSigAlg()">getSigAlg</a></strong>()</code>
<div class="block">Signature Algorithm; optional</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#getTsacert()">getTsacert</a></strong>()</code>
<div class="block">get the -tsacert option</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#getTsaurl()">getTsaurl</a></strong>()</code>
<div class="block">get the -tsaurl url</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#isForce()">isForce</a></strong>()</code>
<div class="block">Should the task force signing of a jar even it is already
signed?</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#isSigned(java.io.File)">isSigned</a></strong>(java.io.File file)</code>
<div class="block">test for a file being signed, by looking for a signature in the META-INF
directory with our alias/sigfile.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#isUpToDate(java.io.File, java.io.File)">isUpToDate</a></strong>(java.io.File jarFile,
java.io.File signedjarFile)</code>
<div class="block">Compare a jar file with its corresponding signed jar.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setDestDir(java.io.File)">setDestDir</a></strong>(java.io.File destDir)</code>
<div class="block">Optionally sets the output directory to be used.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setDigestAlg(java.lang.String)">setDigestAlg</a></strong>(java.lang.String digestAlg)</code>
<div class="block">Digest Algorithm; optional</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setForce(boolean)">setForce</a></strong>(boolean b)</code>
<div class="block">Whether to force signing of a jar even it is already signed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setInternalsf(boolean)">setInternalsf</a></strong>(boolean internalsf)</code>
<div class="block">Flag to include the .SF file inside the signature; optional; default
false</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setLazy(boolean)">setLazy</a></strong>(boolean lazy)</code>
<div class="block">flag to control whether the presence of a signature file means a JAR is
signed; optional, default false</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setPreserveLastModified(boolean)">setPreserveLastModified</a></strong>(boolean preserveLastModified)</code>
<div class="block">true to indicate that the signed jar modification date remains the same
as the original.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setSectionsonly(boolean)">setSectionsonly</a></strong>(boolean sectionsonly)</code>
<div class="block">flag to compute hash of entire manifest; optional, default false</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setSigAlg(java.lang.String)">setSigAlg</a></strong>(java.lang.String sigAlg)</code>
<div class="block">Signature Algorithm; optional</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setSigfile(java.lang.String)">setSigfile</a></strong>(java.lang.String sigfile)</code>
<div class="block">name of .SF/.DSA file; optional</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setSignedjar(java.io.File)">setSignedjar</a></strong>(java.io.File signedjar)</code>
<div class="block">name of signed JAR file; optional</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setTsacert(java.lang.String)">setTsacert</a></strong>(java.lang.String tsacert)</code>
<div class="block">set the alias in the keystore of the TSA to use;</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#setTsaurl(java.lang.String)">setTsaurl</a></strong>(java.lang.String tsaurl)</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.taskdefs.AbstractJarSignerTask">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.tools.ant.taskdefs.<a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html" title="class in org.apache.tools.ant.taskdefs">AbstractJarSignerTask</a></h3>
<code><a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#addFileset(org.apache.tools.ant.types.FileSet)">addFileset</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#addSysproperty(org.apache.tools.ant.types.Environment.Variable)">addSysproperty</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#addValue(org.apache.tools.ant.taskdefs.ExecTask, java.lang.String)">addValue</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#beginExecution()">beginExecution</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#bindToKeystore(org.apache.tools.ant.taskdefs.ExecTask)">bindToKeystore</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#createJarSigner()">createJarSigner</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#createPath()">createPath</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#createUnifiedSourcePath()">createUnifiedSourcePath</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#createUnifiedSources()">createUnifiedSources</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#declareSysProperty(org.apache.tools.ant.taskdefs.ExecTask, org.apache.tools.ant.types.Environment.Variable)">declareSysProperty</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#endExecution()">endExecution</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#getRedirector()">getRedirector</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#hasResources()">hasResources</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setAlias(java.lang.String)">setAlias</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setCommonOptions(org.apache.tools.ant.taskdefs.ExecTask)">setCommonOptions</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setExecutable(java.lang.String)">setExecutable</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setJar(java.io.File)">setJar</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setKeypass(java.lang.String)">setKeypass</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setKeystore(java.lang.String)">setKeystore</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setMaxmemory(java.lang.String)">setMaxmemory</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setStorepass(java.lang.String)">setStorepass</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setStoretype(java.lang.String)">setStoretype</a>, <a href="../../../../../org/apache/tools/ant/taskdefs/AbstractJarSignerTask.html#setVerbose(boolean)">setVerbose</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.Task">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.tools.ant.<a href="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></h3>
<code><a href="../../../../../org/apache/tools/ant/Task.html#bindToOwner(org.apache.tools.ant.Task)">bindToOwner</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</a>, <a href="../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</a>, <a href="../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</a>, <a href="../../../../../org/apache/tools/ant/Task.html#init()">init</a>, <a href="../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</a>, <a href="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</a>, <a href="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</a>, <a href="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, java.lang.Throwable, int)">log</a>, <a href="../../../../../org/apache/tools/ant/Task.html#log(java.lang.Throwable, int)">log</a>, <a href="../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</a>, <a href="../../../../../org/apache/tools/ant/Task.html#perform()">perform</a>, <a href="../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</a>, <a href="../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</a>, <a href="../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</a>, <a href="../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</a>, <a href="../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.tools.ant.<a href="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</a></h3>
<code><a href="../../../../../org/apache/tools/ant/ProjectComponent.html#clone()">clone</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#getDescription()">getDescription</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#getLocation()">getLocation</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#setDescription(java.lang.String)">setDescription</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#setLocation(org.apache.tools.ant.Location)">setLocation</a>, <a href="../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="sigfile">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sigfile</h4>
<pre>protected java.lang.String sigfile</pre>
<div class="block">name to a signature file</div>
</li>
</ul>
<a name="signedjar">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>signedjar</h4>
<pre>protected java.io.File signedjar</pre>
<div class="block">name of a single jar</div>
</li>
</ul>
<a name="internalsf">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>internalsf</h4>
<pre>protected boolean internalsf</pre>
<div class="block">flag for internal sf signing</div>
</li>
</ul>
<a name="sectionsonly">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sectionsonly</h4>
<pre>protected boolean sectionsonly</pre>
<div class="block">sign sections only?</div>
</li>
</ul>
<a name="lazy">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lazy</h4>
<pre>protected boolean lazy</pre>
<div class="block">Whether to assume a jar which has an appropriate .SF file in is already
signed.</div>
</li>
</ul>
<a name="destDir">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>destDir</h4>
<pre>protected java.io.File destDir</pre>
<div class="block">the output directory when using paths.</div>
</li>
</ul>
<a name="tsaurl">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tsaurl</h4>
<pre>protected java.lang.String tsaurl</pre>
<div class="block">URL for a tsa; null implies no tsa support</div>
</li>
</ul>
<a name="tsacert">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tsacert</h4>
<pre>protected java.lang.String tsacert</pre>
<div class="block">alias for the TSA in the keystore</div>
</li>
</ul>
<a name="ERROR_TODIR_AND_SIGNEDJAR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ERROR_TODIR_AND_SIGNEDJAR</h4>
<pre>public static final java.lang.String ERROR_TODIR_AND_SIGNEDJAR</pre>
<div class="block">error string for unit test verification: "\'destdir\' and \'signedjar\' cannot both be set"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.tools.ant.taskdefs.SignJar.ERROR_TODIR_AND_SIGNEDJAR">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ERROR_TOO_MANY_MAPPERS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ERROR_TOO_MANY_MAPPERS</h4>
<pre>public static final java.lang.String ERROR_TOO_MANY_MAPPERS</pre>
<div class="block">error string for unit test verification: "Too many mappers"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.tools.ant.taskdefs.SignJar.ERROR_TOO_MANY_MAPPERS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ERROR_SIGNEDJAR_AND_PATHS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ERROR_SIGNEDJAR_AND_PATHS</h4>
<pre>public static final java.lang.String ERROR_SIGNEDJAR_AND_PATHS</pre>
<div class="block">error string for unit test verification "You cannot specify the signed JAR when using paths or filesets"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.tools.ant.taskdefs.SignJar.ERROR_SIGNEDJAR_AND_PATHS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ERROR_BAD_MAP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ERROR_BAD_MAP</h4>
<pre>public static final java.lang.String ERROR_BAD_MAP</pre>
<div class="block">error string for unit test verification: "Cannot map source file to anything sensible: "</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.tools.ant.taskdefs.SignJar.ERROR_BAD_MAP">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ERROR_MAPPER_WITHOUT_DEST">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ERROR_MAPPER_WITHOUT_DEST</h4>
<pre>public static final java.lang.String ERROR_MAPPER_WITHOUT_DEST</pre>
<div class="block">error string for unit test verification: "The destDir attribute is required if a mapper is set"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.tools.ant.taskdefs.SignJar.ERROR_MAPPER_WITHOUT_DEST">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ERROR_NO_ALIAS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ERROR_NO_ALIAS</h4>
<pre>public static final java.lang.String ERROR_NO_ALIAS</pre>
<div class="block">error string for unit test verification: "alias attribute must be set"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.tools.ant.taskdefs.SignJar.ERROR_NO_ALIAS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ERROR_NO_STOREPASS">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ERROR_NO_STOREPASS</h4>
<pre>public static final java.lang.String ERROR_NO_STOREPASS</pre>
<div class="block">error string for unit test verification: "storepass attribute must be set"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.tools.ant.taskdefs.SignJar.ERROR_NO_STOREPASS">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="SignJar()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SignJar</h4>
<pre>public SignJar()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setSigfile(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSigfile</h4>
<pre>public void setSigfile(java.lang.String sigfile)</pre>
<div class="block">name of .SF/.DSA file; optional</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sigfile</code> - the name of the .SF/.DSA file</dd></dl>
</li>
</ul>
<a name="setSignedjar(java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSignedjar</h4>
<pre>public void setSignedjar(java.io.File signedjar)</pre>
<div class="block">name of signed JAR file; optional</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>signedjar</code> - the name of the signed jar file</dd></dl>
</li>
</ul>
<a name="setInternalsf(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setInternalsf</h4>
<pre>public void setInternalsf(boolean internalsf)</pre>
<div class="block">Flag to include the .SF file inside the signature; optional; default
false</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>internalsf</code> - if true include the .SF file inside the signature</dd></dl>
</li>
</ul>
<a name="setSectionsonly(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSectionsonly</h4>
<pre>public void setSectionsonly(boolean sectionsonly)</pre>
<div class="block">flag to compute hash of entire manifest; optional, default false</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sectionsonly</code> - flag to compute hash of entire manifest</dd></dl>
</li>
</ul>
<a name="setLazy(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLazy</h4>
<pre>public void setLazy(boolean lazy)</pre>
<div class="block">flag to control whether the presence of a signature file means a JAR is
signed; optional, default false</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>lazy</code> - flag to control whether the presence of a signature</dd></dl>
</li>
</ul>
<a name="setDestDir(java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDestDir</h4>
<pre>public void setDestDir(java.io.File destDir)</pre>
<div class="block">Optionally sets the output directory to be used.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>destDir</code> - the directory in which to place signed jars</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="add(org.apache.tools.ant.util.FileNameMapper)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public void add(<a href="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</a> newMapper)</pre>
<div class="block">add a mapper to determine file naming policy. Only used with toDir
processing.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>newMapper</code> - the mapper to add.</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="getMapper()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMapper</h4>
<pre>public <a href="../../../../../org/apache/tools/ant/util/FileNameMapper.html" title="interface in org.apache.tools.ant.util">FileNameMapper</a> getMapper()</pre>
<div class="block">get the active mapper; may be null</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>mapper or null</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="getTsaurl()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTsaurl</h4>
<pre>public java.lang.String getTsaurl()</pre>
<div class="block">get the -tsaurl url</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>url or null</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="setTsaurl(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTsaurl</h4>
<pre>public void setTsaurl(java.lang.String tsaurl)</pre>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tsaurl</code> - the tsa url.</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="getTsacert()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTsacert</h4>
<pre>public java.lang.String getTsacert()</pre>
<div class="block">get the -tsacert option</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a certificate alias or null</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.7</dd></dl>
</li>
</ul>
<a name="setTsacert(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTsacert</h4>
<pre>public void setTsacert(java.lang.String tsacert)</pre>
<div class="block">set the alias in the keystore of the TSA to use;</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tsacert</code> - the cert alias.</dd></dl>
</li>
</ul>
<a name="setForce(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setForce</h4>
<pre>public void setForce(boolean b)</pre>
<div class="block">Whether to force signing of a jar even it is already signed.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="isForce()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isForce</h4>
<pre>public boolean isForce()</pre>
<div class="block">Should the task force signing of a jar even it is already
signed?</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.8.0</dd></dl>
</li>
</ul>
<a name="setSigAlg(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSigAlg</h4>
<pre>public void setSigAlg(java.lang.String sigAlg)</pre>
<div class="block">Signature Algorithm; optional</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sigAlg</code> - the signature algorithm</dd></dl>
</li>
</ul>
<a name="getSigAlg()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSigAlg</h4>
<pre>public java.lang.String getSigAlg()</pre>
<div class="block">Signature Algorithm; optional</div>
</li>
</ul>
<a name="setDigestAlg(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDigestAlg</h4>
<pre>public void setDigestAlg(java.lang.String digestAlg)</pre>
<div class="block">Digest Algorithm; optional</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>digestAlg</code> - the digest algorithm</dd></dl>
</li>
</ul>
<a name="getDigestAlg()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDigestAlg</h4>
<pre>public java.lang.String getDigestAlg()</pre>
<div class="block">Digest Algorithm; optional</div>
</li>
</ul>
<a name="execute()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>execute</h4>
<pre>public void execute()
throws <a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">sign the jar(s)</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/Task.html#execute()">execute</a></code> in class <code><a href="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - on errors</dd></dl>
</li>
</ul>
<a name="isUpToDate(java.io.File, java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUpToDate</h4>
<pre>protected boolean isUpToDate(java.io.File jarFile,
java.io.File signedjarFile)</pre>
<div class="block">Compare a jar file with its corresponding signed jar. The logic for this
is complex, and best explained in the source itself. Essentially if
either file doesnt exist, or the destfile has an out of date timestamp,
then the return value is false.
<p/>
If we are signing ourself, the check <a href="../../../../../org/apache/tools/ant/taskdefs/SignJar.html#isSigned(java.io.File)"><code>isSigned(File)</code></a> is used to
trigger the process.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>jarFile</code> - the unsigned jar file</dd><dd><code>signedjarFile</code> - the result signed jar file</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if the signedjarFile is considered up to date</dd></dl>
</li>
</ul>
<a name="isSigned(java.io.File)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSigned</h4>
<pre>protected boolean isSigned(java.io.File file)</pre>
<div class="block">test for a file being signed, by looking for a signature in the META-INF
directory with our alias/sigfile.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>file</code> - the file to be checked</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if the file is signed</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/tools/ant/taskdefs/condition/IsSigned.html#isSigned(java.io.File, java.lang.String)"><code>IsSigned.isSigned(File, String)</code></a></dd></dl>
</li>
</ul>
<a name="setPreserveLastModified(boolean)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setPreserveLastModified</h4>
<pre>public void setPreserveLastModified(boolean preserveLastModified)</pre>
<div class="block">true to indicate that the signed jar modification date remains the same
as the original. Defaults to false</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>preserveLastModified</code> - if true preserve the last modified time</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/tools/ant/taskdefs/Sleep.html" title="class in org.apache.tools.ant.taskdefs"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/tools/ant/taskdefs/SignJar.html" target="_top">Frames</a></li>
<li><a href="SignJar.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>