@@ -35,7 +35,7 @@ OUTPUT_FILE_PREFIX_WINDOWS="eclipse-emoflon-windows"
35
35
OUTOUT_FILE_PREFIX_MACOS=" eclipse-emoflon-macos"
36
36
OUTOUT_FILE_PREFIX_MACOSARM=" eclipse-emoflon-macos-arm"
37
37
MIRROR=" https://ftp.fau.de"
38
- UPDATESITES=" https://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/,https://hallvard.github.io/plantuml/,https://hipe-devops.github.io/HiPE-Updatesite/hipe.updatesite/,https://www.kermeta.org/k2/update,https://emoflon.org/emoflon-ibex-updatesite/snapshot/updatesite/,https://devstyle.codetogether.io/,https://download.eclipse.org/releases/$VERSION ,https://www.codetogether.com/updates/ci/,http://update.eclemma.org/,https://pmd.github.io/pmd-eclipse-plugin-p2-site/,https://checkstyle.org/eclipse-cs-update-site/,https://spotbugs.github.io/eclipse/,https://download.eclipse.org/technology/m2e/releases/latest"
38
+ UPDATESITES=" https://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/,https://hallvard.github.io/plantuml/,https://hipe-devops.github.io/HiPE-Updatesite/hipe.updatesite/,https://www.kermeta.org/k2/update,https://emoflon.org/emoflon-ibex-updatesite/snapshot/updatesite/,https://devstyle.codetogether.io/,https://download.eclipse.org/releases/$VERSION ,https://www.codetogether.com/updates/ci/,http://update.eclemma.org/,https://pmd.github.io/pmd-eclipse-plugin-p2-site/,https://checkstyle.org/eclipse-cs-update-site/,https://spotbugs.github.io/eclipse/,https://download.eclipse.org/technology/m2e/releases/latest,https://download.eclipse.org/eclipse/updates/4.36-I-builds/ "
39
39
EMOFLON_HEADLESS_SRC=" https://api.github.com/repos/eMoflon/emoflon-headless/releases/latest"
40
40
41
41
# Import plug-in:
@@ -44,7 +44,7 @@ IMPORT_PLUGIN_FILENAME="com.seeq.eclipse.importprojects_$IMPORT_PLUGIN_VERSION.j
44
44
IMPORT_PLUGIN_SRC=" https://api.github.com/repos/maxkratz/eclipse-import-projects-plugin/releases/tags/v$IMPORT_PLUGIN_VERSION "
45
45
46
46
# Array with the order to install the plugins with.
47
- ORDER_LINUX=(" xtext" " plantuml" " hipe" " kermeta" " misc" " emoflon-headless" " emoflon" " theme" " additional" )
47
+ ORDER_LINUX=(" pde-fix " " xtext" " plantuml" " hipe" " kermeta" " misc" " emoflon-headless" " emoflon" " theme" " additional" )
48
48
49
49
#
50
50
# Configure OS specific details
@@ -108,6 +108,20 @@ install_packages () {
108
108
-installIU " $( parse_package_list $2 ) "
109
109
}
110
110
111
+ # Uninstalls a given list of packages from a given update site.
112
+ uninstall_packages () {
113
+ if [[ " $OS " = " macos" ]] || [[ " $OS " = " macosarm" ]]; then
114
+ chmod +x $ECLIPSE_BIN_PATH
115
+ fi
116
+
117
+ echo " $( parse_package_list $2 ) "
118
+
119
+ $ECLIPSE_BIN_PATH -nosplash \
120
+ -application org.eclipse.equinox.p2.director \
121
+ -repository " $1 " \
122
+ -uninstallIU " $( parse_package_list $2 ) "
123
+ }
124
+
111
125
# Displays the given input including "=> " on the console.
112
126
log () {
113
127
echo " => $1 "
@@ -195,7 +209,7 @@ remove_update_sites () {
195
209
# First, create a ZIP as "backup"
196
210
zip -q -r $UPDATE_SITE_CONFIG_PATH /update-sites.zip $UPDATE_SITE_CONFIG_PATH /$UPDATE_SITE_ARTIFACT $UPDATE_SITE_CONFIG_PATH /$UPDATE_SITE_METADATA
197
211
198
- rm -rf $UPDATE_SITE_CONFIG_PATH /$UPDATE_SITE_ARTIFACT
212
+ rm -rf $UPDATE_SITE_CONFIG_PATH /$UPDATE_SITE_ARTIFACT
199
213
rm -rf $UPDATE_SITE_CONFIG_PATH /$UPDATE_SITE_METADATA
200
214
}
201
215
247
261
# Install global Eclipse settings from config file
248
262
install_global_eclipse_settings
249
263
264
+ log " Remove old version of the PDE."
265
+ uninstall_packages " $UPDATESITES " " ./packages/pde-remove-packages.list"
266
+
250
267
log " Install Eclipse plug-ins."
251
268
for p in ${ORDER[@]} ; do
252
269
# Check if eMoflon packages must be skipped (for dev builds).
0 commit comments