Browse Source

looks as if -storepass might be required on Java7 even without -strict

master
Stefan Bodewig 7 years ago
parent
commit
360acf53d0
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      src/main/org/apache/tools/ant/taskdefs/VerifyJar.java

+ 1
- 5
src/main/org/apache/tools/ant/taskdefs/VerifyJar.java View File

@@ -118,7 +118,7 @@ public class VerifyJar extends AbstractJarSignerTask {
// So if strict is true then we hide storepass from the base // So if strict is true then we hide storepass from the base
// implementation and instead add the -storepass command line // implementation and instead add the -storepass command line
// argument // argument
if (mustHideStorePass()) {
if (storepass != null) {
savedStorePass = storepass; savedStorePass = storepass;
setStorepass(null); setStorepass(null);
} }
@@ -193,10 +193,6 @@ public class VerifyJar extends AbstractJarSignerTask {
} }
} }


private boolean mustHideStorePass() {
return strict && storepass != null;
}

/** /**
* we are not thread safe here. Do not use on multiple threads at the same time. * we are not thread safe here. Do not use on multiple threads at the same time.
*/ */


Loading…
Cancel
Save