Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Created bash script for signing the Scala IDE Eclipse plugin.

It needs some love, but it does the work. no review.
  • Loading branch information...
commit 82421c50f0cf846b9a7745609a68621f24f261e5 1 parent 9f539fc
Mirco Dotta dotta authored
Showing with 59 additions and 0 deletions.
  1. +59 −0 org.scala-ide.sdt.update-site/
59 org.scala-ide.sdt.update-site/
@@ -0,0 +1,59 @@
+if [ $# -ne $EXPECTED_ARGS ]
+ echo "Usage: ./plugin-signing <path to keystore> <alias> <store password> <key password>"
+ exit $E_BADARGS
+ # $1 is the folder containing the JARs to be signed
+ for i in ${JAR_FOLDER}/*.jar
+ do
+ jarsigner -keystore $PATH_KEYSTORE -storepass $STORE_PWD -verbose -keypass $KEY_PWD $i $ALIAS
+ done
+# These files will be recreated after the plug-in JARs are signed.
+rm -rf ${BUNDLE_DIR}/artifacts.jar
+rm -rf ${BUNDLE_DIR}/content.jar
+rm -rf ${TARGET_DIR}/
+rm -rf ${TARGET_DIR}/
+# Sign both the features and plugins JARs
+signJars ${FEATURES_DIR}
+signJars ${PLUGINS_DIR}
+# This will re-create both 'artifacts.jar' and 'content.jar'
+$ECLIPSE -debug -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:${BUNDLE_DIR} -artifactRepository file:${BUNDLE_DIR} -source ${BUNDLE_DIR} -compress -append -publishArtifacts
+# This will make sure that the above produced plug-in is visible on p2 repository
+$ECLIPSE -debug -consolelog -nosplash -verbose -application org.eclipse.equinox.p2.publisher.CategoryPublisher -metadataRepository file:${BUNDLE_DIR} -categoryDefinition file:${BUNDLE_DIR}/site.xml
+# Re-create the
+pushd target/
+zip -r site/
Please sign in to comment.
Something went wrong with that request. Please try again.