Skip to content

Commit

Permalink
Merge pull request #42 from maxkratz/feature/global-eclipse-settings
Browse files Browse the repository at this point in the history
Configure global settings for Eclipse
  • Loading branch information
maxkratz authored May 2, 2022
2 parents e1ce68b + b35922e commit 46ed18f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ install_eclipse_import_projects () {
wget -P eclipse/plugins -qi $IMPORT_PROJECTS_JAR
}

# Install custom global configuration
install_global_eclipse_settings () {
log "Install global Eclipse settings."
cp ./resources/emoflon.properties ./eclipse
echo "-Declipse.pluginCustomization=emoflon.properties" >> ./eclipse/eclipse.ini
}


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

# Install global Eclipse settings from config file
install_global_eclipse_settings

log "Install Eclipse plug-ins."
for p in ${ORDER[@]}; do
# Check if eMoflon packages must be skipped (for dev builds).
Expand Down
11 changes: 11 additions & 0 deletions resources/emoflon.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# This file can be used to set global settings for the eMoflon-Eclipses.
#
# Set default encoding to UTF-8
org.eclipse.core.resources/encoding=UTF-8
#
# Set default Git location to workspace related path
org.eclipse.egit.core/core_defaultRepositoryDir=${workspace_loc}/git
#
# Disable console log output limitation
org.eclipse.debug.ui/Console.limitConsoleOutput=false

0 comments on commit 46ed18f

Please sign in to comment.