Skip to content

Commit

Permalink
Implements restoring of the non-broken commons.logging JAR
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed Dec 10, 2024
1 parent ed0cb28 commit ace2856
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,19 @@ remove_broken_commons_logging () {
sed -i '/org.apache.commons.logging,1.2.0.v20180409-1502,plugins\/org.apache.commons.logging_1.2.0.v20180409-1502.jar,4,false/d' $ECLIPSE_BASE_PATH/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
}

# Copies the non-broken org.apache.commons.logging JAR from plug-ins
save_non_broken_commons_logging () {
log "Save non-broken org.apache.commons.logging JAR from plug-ins."
cp $ECLIPSE_BASE_PATH/plugins/org.apache.commons.logging_1.2.0.jar /tmp/org.apache.commons.logging_1.2.0.jar
}

# Restores the non-broken org.apache.commons.logging JAR to plug-ins
restore_non_broken_commons_logging () {
log "Restores the non-broken org.apache.commons.logging JAR from plug-ins."
cp /tmp/org.apache.commons.logging_1.2.0.jar $ECLIPSE_BASE_PATH/plugins/org.apache.commons.logging_1.2.0.jar
rm /tmp/org.apache.commons.logging_1.2.0.jar
}

#
# Script
#
Expand Down Expand Up @@ -257,6 +270,9 @@ fi
# Install global Eclipse settings from config file
install_global_eclipse_settings

# Save non-broken org.apache.commons.logging JAR from plug-ins
save_non_broken_commons_logging

log "Install Eclipse plug-ins."
for p in ${ORDER[@]}; do
# Check if eMoflon packages must be skipped (for dev builds).
Expand Down Expand Up @@ -304,6 +320,9 @@ fi
# Remove broken org.apache.commons.logging JAR
remove_broken_commons_logging

# Restore non-broken org.apache.commons.logging JAR
restore_non_broken_commons_logging

log "Clean-up old archives and create new archive."
rm -f ./$OUTPUT_FILE
zip -q -r $OUTPUT_FILE eclipse
Expand Down

0 comments on commit ace2856

Please sign in to comment.