Skip to content

Commit

Permalink
Added option to pass the 'arguments' option to the 'maven-sign-jar' w…
Browse files Browse the repository at this point in the history
…ho in turn passes them on to signtool.
  • Loading branch information
siepkes committed Nov 19, 2015
1 parent 1ed56c5 commit 3b49431
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ public class SignConfig
*/
private String tsaLocation;

/**
* Provides custom arguements to pass to the signtool.
*/
private String[] arguments;

/**
* Called before any Jars get signed or verified.
* <p/>
Expand Down Expand Up @@ -212,6 +217,7 @@ public JarSignerRequest createSignRequest( File jarToSign, File signedJar )
request.setArchive( jarToSign );
request.setSignedjar( signedJar );
request.setTsaLocation( getTsaLocation() );
request.setArguments( getArguments() );
return request;
}

Expand Down Expand Up @@ -383,6 +389,11 @@ public void setTsaLocation( String tsaLocation )
this.tsaLocation = tsaLocation;
}

public void setArguments(String[] arguments)
{
this.arguments = arguments;
}

public String getKeystore()
{
return keystore;
Expand Down Expand Up @@ -478,6 +489,11 @@ public String getMaxMemory()
return maxMemory;
}

public String[] getArguments()
{
return arguments;
}

public String getDname()
{
StringBuffer buffer = new StringBuffer( 128 );
Expand Down

0 comments on commit 3b49431

Please sign in to comment.