Skip to content

Instantly share code, notes, and snippets.

@peterkir
Last active April 18, 2016 05:59
Show Gist options
  • Save peterkir/985e133dd9353bb0426c to your computer and use it in GitHub Desktop.
Save peterkir/985e133dd9353bb0426c to your computer and use it in GitHub Desktop.
Publish a p2 repo from existing features and plugins (including valid md5 and artifacts sizes) - IGNORING binary artefacts
:: Publish an existing p2 repo with proper sizes for artifact and download and md5 checksums
SET ECLIPSE_SDK=c:\apps\eclipse-SDK-4.5.2-win32-x86_64\
SET EQUINOX_LAUNCHER_VERSION=1.3.100.v20150511-1540
SET REPO_SOURCE=C:/__publisher/exportIDE
SET REPO_TARGET=C:/__publisher/exportPublished
java -jar %ECLIPSE_SDK%\eclipse\plugins\org.eclipse.equinox.launcher_%EQUINOX_LAUNCHER_VERSION%.jar ^
-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher ^
-metadataRepository file:/%REPO_TARGET% ^
-artifactRepository file:/%REPO_TARGET% ^
-source %REPO_SOURCE% ^
-compress ^
-publishArtifacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment