@@ -52,6 +52,12 @@ public class SignTask implements PatternFilterable {
5252 private final Property <String > keyPass ;
5353 private final Property <String > keyStoreData ;
5454 private final Property <File > keyStoreFile ;
55+ private final Property <Boolean > verbose ;
56+ private final Property <Boolean > preserveLastModified ;
57+ private final Property <String > tsaUrl ;
58+ private final Property <String > storeType ;
59+ private final Property <String > providerClass ;
60+ private final Property <String > providerArg ;
5561 private final PatternSet patternSet = new PatternSet ();
5662
5763 @ SuppressWarnings ("serial" )
@@ -69,6 +75,12 @@ public class SignTask implements PatternFilterable {
6975 this .keyPass = objs .property (String .class );
7076 this .keyStoreData = objs .property (String .class );
7177 this .keyStoreFile = objs .property (File .class );
78+ this .verbose = objs .property (Boolean .class );
79+ this .preserveLastModified = objs .property (Boolean .class );
80+ this .tsaUrl = objs .property (String .class );
81+ this .storeType = objs .property (String .class );
82+ this .providerClass = objs .property (String .class );
83+ this .providerArg = objs .property (String .class );
7284
7385 this .parent .configure (new Closure <Object >(parent ) {
7486 @ SuppressWarnings ("unused" )
@@ -92,6 +104,12 @@ private Object addProperties() {
92104 in .property ("signJar.storePass" , this .storePass ).optional (true );
93105 in .property ("signJar.keyPass" , this .keyPass ).optional (true );
94106 in .property ("signJar.keyStoreData" , this .keyStoreData ).optional (true );
107+ in .property ("signJar.verbose" , this .verbose ).optional (true );
108+ in .property ("signJar.preserveLastModified" , this .preserveLastModified ).optional (true );
109+ in .property ("signJar.tsaUrl" , this .tsaUrl ).optional (true );
110+ in .property ("signJar.storeType" , this .storeType ).optional (true );
111+ in .property ("signJar.providerClass" , this .providerClass ).optional (true );
112+ in .property ("signJar.providerArg" , this .providerArg ).optional (true );
95113 if (this .keyStoreFile .isPresent ())
96114 in .file (this .keyStoreFile );
97115 return null ;
@@ -173,6 +191,18 @@ private <T extends Task> void sign(T task) throws IOException {
173191 map .put ("keyStore" , keyStore .getAbsolutePath ());
174192 if (this .keyPass .isPresent ())
175193 map .put ("keypass" , this .keyPass .get ());
194+ if (this .verbose .isPresent () && this .verbose .get ())
195+ map .put ("verbose" , Boolean .TRUE .toString ());
196+ if (this .preserveLastModified .isPresent () && this .preserveLastModified .get ())
197+ map .put ("preservelastmodified" , Boolean .TRUE .toString ());
198+ if (this .tsaUrl .isPresent ())
199+ map .put ("tsaurl" , this .tsaUrl .get ());
200+ if (this .storeType .isPresent ())
201+ map .put ("storetype" , this .storeType .get ());
202+ if (this .providerClass .isPresent ())
203+ map .put ("providerclass" , this .providerClass .get ());
204+ if (this .providerArg .isPresent ())
205+ map .put ("providerarg" , this .providerArg .get ());
176206
177207 try {
178208 this .parent .getProject ().getAnt ().invokeMethod ("signjar" , map );
@@ -278,6 +308,30 @@ public void setKeyPass(String value) {
278308 this .keyPass .set (value );
279309 }
280310
311+ public void setVerbose (boolean value ) {
312+ this .verbose .set (value );
313+ }
314+
315+ public void setPreserveLastModified (boolean value ) {
316+ this .preserveLastModified .set (value );
317+ }
318+
319+ public void setTsaUrl (String value ) {
320+ this .tsaUrl .set (value );
321+ }
322+
323+ public void setStoreType (String value ) {
324+ this .storeType .set (value );
325+ }
326+
327+ public void setProviderClass (String value ) {
328+ this .providerClass .set (value );
329+ }
330+
331+ public void setProviderArg (String value ) {
332+ this .providerArg .set (value );
333+ }
334+
281335 /**
282336 * A base64 encode string containing the keystore data.
283337 * This will be written to a temporary file and then deleted after the task is run.
0 commit comments