From 52a4c5f901bfb1ba3e67be64a6cafdd16dab1e3f Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Mon, 17 May 2004 10:12:29 +0000 Subject: [PATCH] Misc. corrections in SignJar.java PR: 28999 Obtained from: Jesse Glick git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276454 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/SignJar.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/SignJar.java b/src/main/org/apache/tools/ant/taskdefs/SignJar.java index a3665524e..8a7e1f0f6 100644 --- a/src/main/org/apache/tools/ant/taskdefs/SignJar.java +++ b/src/main/org/apache/tools/ant/taskdefs/SignJar.java @@ -31,14 +31,11 @@ import org.apache.tools.ant.util.JavaEnvUtils; import org.apache.tools.ant.util.FileUtils; /** - * Signs jar or zip files with the javasign command line tool. The + * 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 signjar 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. - *
- * Note: Requires Java 1.2 or later.

- * * @since Ant 1.1 * @ant.task category="java" @@ -300,7 +297,7 @@ public class SignJar extends Task { cmd.createArg().setValue(alias); - log("Signing Jar : " + jarSource.getAbsolutePath()); + log("Signing JAR: " + jarSource.getAbsolutePath()); cmd.setFailonerror(true); cmd.setTaskName(getTaskName()); cmd.execute(); @@ -338,7 +335,7 @@ public class SignJar extends Task { * test for a file being signed, by looking for a signature in the META-INF * directory * @param file - * @return + * @return true if the file is signed */ protected boolean isSigned(File file) { final String SIG_START = "META-INF/";