Skip to content

Commit

Permalink
Merge pull request #62 from eMoflon/feature/remove-all-updatesites
Browse files Browse the repository at this point in the history
Removes all update sites in CI builds
  • Loading branch information
maxkratz committed Sep 23, 2022
2 parents b4b434f + 3f91b62 commit 14b3057
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,20 @@ install_global_eclipse_settings () {
echo "-Declipse.pluginCustomization=emoflon.properties" >> $ECLIPSE_BASE_PATH/eclipse.ini
}

# Remove all configured update sites
remove_update_sites () {
log "Remove all update sites."
UPDATE_SITE_CONFIG_PATH="$ECLIPSE_BASE_PATH/p2/org.eclipse.equinox.p2.engine/profileRegistry/epp.package.modeling.profile/.data/.settings"
UPDATE_SITE_METADATA="org.eclipse.equinox.p2.metadata.repository.prefs"
UPDATE_SITE_ARTIFACT="org.eclipse.equinox.p2.artifact.repository.prefs"

# First, create a ZIP as "backup"
zip -q -r $UPDATE_SITE_CONFIG_PATH/update-sites.zip $UPDATE_SITE_CONFIG_PATH/$UPDATE_SITE_ARTIFACT $UPDATE_SITE_CONFIG_PATH/$UPDATE_SITE_METADATA

rm -rf $UPDATE_SITE_CONFIG_PATH/$UPDATE_SITE_ARTIFACT
rm -rf $UPDATE_SITE_CONFIG_PATH/$UPDATE_SITE_METADATA
}


#
# Script
Expand Down Expand Up @@ -246,6 +260,9 @@ done
# Install com.seeq.eclipse.importprojects (by hand because there is no public update site)
install_eclipse_import_projects

# Remove all configured update sites
remove_update_sites

# Deploy custom splash image
if [[ $SKIP_THEME -eq 1 ]]; then
# Skip UI customization for CI builds
Expand Down

0 comments on commit 14b3057

Please sign in to comment.