Skip to content

Commit 14b3057

Browse files
authored
Merge pull request #62 from eMoflon/feature/remove-all-updatesites
Removes all update sites in CI builds
2 parents b4b434f + 3f91b62 commit 14b3057

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build.sh

+17
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,20 @@ install_global_eclipse_settings () {
170170
echo "-Declipse.pluginCustomization=emoflon.properties" >> $ECLIPSE_BASE_PATH/eclipse.ini
171171
}
172172

173+
# Remove all configured update sites
174+
remove_update_sites () {
175+
log "Remove all update sites."
176+
UPDATE_SITE_CONFIG_PATH="$ECLIPSE_BASE_PATH/p2/org.eclipse.equinox.p2.engine/profileRegistry/epp.package.modeling.profile/.data/.settings"
177+
UPDATE_SITE_METADATA="org.eclipse.equinox.p2.metadata.repository.prefs"
178+
UPDATE_SITE_ARTIFACT="org.eclipse.equinox.p2.artifact.repository.prefs"
179+
180+
# First, create a ZIP as "backup"
181+
zip -q -r $UPDATE_SITE_CONFIG_PATH/update-sites.zip $UPDATE_SITE_CONFIG_PATH/$UPDATE_SITE_ARTIFACT $UPDATE_SITE_CONFIG_PATH/$UPDATE_SITE_METADATA
182+
183+
rm -rf $UPDATE_SITE_CONFIG_PATH/$UPDATE_SITE_ARTIFACT
184+
rm -rf $UPDATE_SITE_CONFIG_PATH/$UPDATE_SITE_METADATA
185+
}
186+
173187

174188
#
175189
# Script
@@ -246,6 +260,9 @@ done
246260
# Install com.seeq.eclipse.importprojects (by hand because there is no public update site)
247261
install_eclipse_import_projects
248262

263+
# Remove all configured update sites
264+
remove_update_sites
265+
249266
# Deploy custom splash image
250267
if [[ $SKIP_THEME -eq 1 ]]; then
251268
# Skip UI customization for CI builds

0 commit comments

Comments
 (0)