--- old/make/CreateJars.gmk 2015-06-26 00:51:05.927656717 -0400 +++ new/make/CreateJars.gmk 2015-06-26 00:51:04.523575195 -0400 @@ -283,15 +283,15 @@ -e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \ $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp ifneq ($(PROFILE), ) + # Strip out all META-INF/services/ entries + $(GREP) -v -e 'META-INF/services/' $@.tmp > $@.tmp2 ifneq ($(strip $(PROFILE_INCLUDE_METAINF_SERVICES)), ) - # Strip out all META-INF/services/ entries - $(GREP) -v -e 'META-INF/services/' $@.tmp > $@.tmp2 # Add back the required services for service in $(PROFILE_INCLUDE_METAINF_SERVICES) ; do \ $(ECHO) $$service >> $@.tmp2; \ done - $(MV) $@.tmp2 $@.tmp endif + $(MV) $@.tmp2 $@.tmp endif $(MV) $@.tmp $@