From 2e1f7446d9ae779c19a65cf4c64ad4f944cf7418 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Tue, 13 Nov 2012 17:59:47 +0100 Subject: Add pkcs11-sign profile to sign using token --- trunk/pdf-over-gui/pom.xml | 57 ++++++++++++++++++++++++++++++++++++++++------ trunk/publish.sh | 4 +++- 2 files changed, 53 insertions(+), 8 deletions(-) diff --git a/trunk/pdf-over-gui/pom.xml b/trunk/pdf-over-gui/pom.xml index 3fc19d46..40d911b7 100644 --- a/trunk/pdf-over-gui/pom.xml +++ b/trunk/pdf-over-gui/pom.xml @@ -138,16 +138,10 @@ target - - **/S*.jar - *.jar - src/main/resources/keystore.jks - pdfover_test - 123456 - 123456 + true @@ -324,6 +318,55 @@ mac + + dummy-sign + + + + + !pkcs11-pass + + + + + + org.apache.maven.plugins + maven-jarsigner-plugin + 1.2 + + src/main/resources/keystore.jks + pdfover_test + 123456 + 123456 + + + + + + + pkcs11-sign + + + + + org.apache.maven.plugins + maven-jarsigner-plugin + 1.2 + + NONE + PKCS11 + iaik.pkcs.pkcs11.provider.IAIKPkcs11 + a-sit-2 + ${pkcs11-pass} + + false + false + + + + + + diff --git a/trunk/publish.sh b/trunk/publish.sh index 7b04941f..6576e8f7 100755 --- a/trunk/publish.sh +++ b/trunk/publish.sh @@ -24,6 +24,8 @@ TNORMAL="\033[0;39m" COLS=$(tput cols) +MVN_PARAMS="$@" + function begin_phase { MSG=$@ printf "$MSG" @@ -52,7 +54,7 @@ for (( i = 0 ; i < ${#names[@]} ; i++ )) do NAME=${names[$i]} INSTALLER=setup_pdfover_$NAME.jar begin_phase "Building package [$PROFILE] as $INSTALLER..." - mvn install -P$PROFILE > $LOG_DIR/build_$NAME.log 2>&1 + mvn install -P$PROFILE $MVN_PARAMS > $LOG_DIR/build_$NAME.log 2>&1 RETVAL=$? if [ $RETVAL -eq 0 ]; then end_phase "OK" -- cgit v1.2.3