Skip to content

Commit ace2856

Browse files
committed
Implements restoring of the non-broken commons.logging JAR
1 parent ed0cb28 commit ace2856

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

build.sh

+19
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,19 @@ remove_broken_commons_logging () {
210210
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
211211
}
212212

213+
# Copies the non-broken org.apache.commons.logging JAR from plug-ins
214+
save_non_broken_commons_logging () {
215+
log "Save non-broken org.apache.commons.logging JAR from plug-ins."
216+
cp $ECLIPSE_BASE_PATH/plugins/org.apache.commons.logging_1.2.0.jar /tmp/org.apache.commons.logging_1.2.0.jar
217+
}
218+
219+
# Restores the non-broken org.apache.commons.logging JAR to plug-ins
220+
restore_non_broken_commons_logging () {
221+
log "Restores the non-broken org.apache.commons.logging JAR from plug-ins."
222+
cp /tmp/org.apache.commons.logging_1.2.0.jar $ECLIPSE_BASE_PATH/plugins/org.apache.commons.logging_1.2.0.jar
223+
rm /tmp/org.apache.commons.logging_1.2.0.jar
224+
}
225+
213226
#
214227
# Script
215228
#
@@ -257,6 +270,9 @@ fi
257270
# Install global Eclipse settings from config file
258271
install_global_eclipse_settings
259272

273+
# Save non-broken org.apache.commons.logging JAR from plug-ins
274+
save_non_broken_commons_logging
275+
260276
log "Install Eclipse plug-ins."
261277
for p in ${ORDER[@]}; do
262278
# Check if eMoflon packages must be skipped (for dev builds).
@@ -304,6 +320,9 @@ fi
304320
# Remove broken org.apache.commons.logging JAR
305321
remove_broken_commons_logging
306322

323+
# Restore non-broken org.apache.commons.logging JAR
324+
restore_non_broken_commons_logging
325+
307326
log "Clean-up old archives and create new archive."
308327
rm -f ./$OUTPUT_FILE
309328
zip -q -r $OUTPUT_FILE eclipse

0 commit comments

Comments
 (0)