|
|
Re: How do I download Plugins outside of the Eclipse IDE? [message #1796097 is a reply to message #1796092] |
Fri, 05 October 2018 06:12 |
Ed Merks Messages: 33133 Registered: July 2009 |
Senior Member |
|
|
A very general approach that works even if no update site zip is provided is to mirror the repository.
https://wiki.eclipse.org/Equinox_p2_Repository_Mirroring
E.g., I have this utility bash script for that purpose:#!/bin/sh
eclipse="/d/sandbox/oomph-master/eclipse/eclipse.exe"
if [[ $# != 2 ]]; then
echo "mirror-eclipse <source-URL> <targetURL>"
else
$eclipse -nosplash -verbose \
-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication \
-source $1 \
-destination $2
$eclipse -nosplash -verbose \
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \
-source $1 \
-destination $2
fi
exit
Every Eclipse installation includes the mirror application, so in this script I have hard coded one installation to use, and I can pass that script a URL of the p2 update site to mirror (both the artifacts and the metadata) and a URL (file:/...) pointing at a local disk folder where I want the results to end up. This result you can either use directly with the same file:/ URL pointing at your local file system, or you could zip it and point at the zip.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03154 seconds