forked from eclipse-archived/ceylon-ide-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmirror.sh
More file actions
17 lines (12 loc) · 1.04 KB
/
mirror.sh
File metadata and controls
17 lines (12 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ECLIPSE=/Users/max/products/eclipse/indigo
local_site=/Users/max/impmirror
local_update_site=file:/$local_site
original_site=http://download.eclipse.org/technology/imp/updates/
echo Mirroring metadata for $original_site
java -jar $ECLIPSE/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source $original_site -destination $local_update_site -destinationName "IMP Mirror" -verbose
echo Mirroring artifacts for $original_site
java -jar $ECLIPSE/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source $original_site -destination $local_update_site -destinationName "IMP Mirror" -verbose
echo Fixing site to include p2
rm $local_site/artifacts.*
rm $local_site/content.*
java -jar $ECLIPSE/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository $local_update_site -artifactRepository $local_update_site -source $local_site -publishArtifacts