|
@@ -100,20 +100,52 @@ public class SignJar extends Task { |
|
|
*/ |
|
|
*/ |
|
|
private Mapper mapper; |
|
|
private Mapper mapper; |
|
|
|
|
|
|
|
|
|
|
|
/** error string for unit test verification: {@value} */ |
|
|
public static final String ERROR_SIGNEDJAR_AND_FILESET = |
|
|
public static final String ERROR_SIGNEDJAR_AND_FILESET = |
|
|
"The signedjar attribute is not supported with filesets"; |
|
|
"The signedjar attribute is not supported with filesets"; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String ERROR_TODIR_AND_SIGNEDJAR |
|
|
public static final String ERROR_TODIR_AND_SIGNEDJAR |
|
|
= "'destdir' and 'signedjar' cannot both be set"; |
|
|
= "'destdir' and 'signedjar' cannot both be set"; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String ERROR_TOO_MANY_MAPPERS = "Too many mappers"; |
|
|
public static final String ERROR_TOO_MANY_MAPPERS = "Too many mappers"; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String ERROR_SIGNEDJAR_AND_FILESETS = "You cannot specify the signed JAR when using filesets"; |
|
|
public static final String ERROR_SIGNEDJAR_AND_FILESETS = "You cannot specify the signed JAR when using filesets"; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String WARN_JAR_AND_FILESET = "nested filesets will be ignored if the jar attribute has" |
|
|
public static final String WARN_JAR_AND_FILESET = "nested filesets will be ignored if the jar attribute has" |
|
|
+ " been specified."; |
|
|
+ " been specified."; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String ERROR_BAD_MAP = "Cannot map source file to anything sensible: "; |
|
|
public static final String ERROR_BAD_MAP = "Cannot map source file to anything sensible: "; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String ERROR_MAPPER_WITHOUT_DEST = "The destDir attribute is required if a mapper is set"; |
|
|
public static final String ERROR_MAPPER_WITHOUT_DEST = "The destDir attribute is required if a mapper is set"; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String ERROR_NO_SOURCE = "jar must be set through jar attribute " |
|
|
public static final String ERROR_NO_SOURCE = "jar must be set through jar attribute " |
|
|
+ "or nested filesets"; |
|
|
+ "or nested filesets"; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String ERROR_NO_ALIAS = "alias attribute must be set"; |
|
|
public static final String ERROR_NO_ALIAS = "alias attribute must be set"; |
|
|
|
|
|
/** |
|
|
|
|
|
* error string for unit test verification: {@value} |
|
|
|
|
|
*/ |
|
|
public static final String ERROR_NO_STOREPASS = "storepass attribute must be set"; |
|
|
public static final String ERROR_NO_STOREPASS = "storepass attribute must be set"; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* name of JDK program we are looking for |
|
|
|
|
|
*/ |
|
|
protected static final String JARSIGNER_COMMAND = "jarsigner"; |
|
|
protected static final String JARSIGNER_COMMAND = "jarsigner"; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|