Skip to content

Commit 46ed18f

Browse files
authored
Merge pull request #42 from maxkratz/feature/global-eclipse-settings
Configure global settings for Eclipse
2 parents e1ce68b + b35922e commit 46ed18f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

build.sh

+10
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ install_eclipse_import_projects () {
126126
wget -P eclipse/plugins -qi $IMPORT_PROJECTS_JAR
127127
}
128128

129+
# Install custom global configuration
130+
install_global_eclipse_settings () {
131+
log "Install global Eclipse settings."
132+
cp ./resources/emoflon.properties ./eclipse
133+
echo "-Declipse.pluginCustomization=emoflon.properties" >> ./eclipse/eclipse.ini
134+
}
135+
129136

130137
#
131138
# Script
@@ -165,6 +172,9 @@ elif [[ "$OS" = "windows" ]]; then
165172
unzip -qq -o eclipse-modeling-$VERSION-R-win32-x86_64.zip
166173
fi
167174

175+
# Install global Eclipse settings from config file
176+
install_global_eclipse_settings
177+
168178
log "Install Eclipse plug-ins."
169179
for p in ${ORDER[@]}; do
170180
# Check if eMoflon packages must be skipped (for dev builds).

resources/emoflon.properties

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# This file can be used to set global settings for the eMoflon-Eclipses.
3+
#
4+
# Set default encoding to UTF-8
5+
org.eclipse.core.resources/encoding=UTF-8
6+
#
7+
# Set default Git location to workspace related path
8+
org.eclipse.egit.core/core_defaultRepositoryDir=${workspace_loc}/git
9+
#
10+
# Disable console log output limitation
11+
org.eclipse.debug.ui/Console.limitConsoleOutput=false

0 commit comments

Comments
 (0)