hotspot/make/linux/Makefile
changeset 28613 b78d7c133e56
parent 26565 32d2efad175d
child 29569 f01f9f072b88
--- a/hotspot/make/linux/Makefile	Tue Jan 13 14:30:53 2015 -0500
+++ b/hotspot/make/linux/Makefile	Wed Jan 14 15:57:59 2015 +0100
@@ -246,8 +246,7 @@
 XSLT_CHECK	= $(REMOTE) $(RUN.JAVAP) javax.xml.transform.TransformerFactory
 # If not found then fail fast.
 check_j2se_version:
-	$(QUIETLY) $(XSLT_CHECK) > /dev/null 2>&1; \
-	if [ $$? -ne 0 ]; then \
+	$(QUIETLY) if ! $(XSLT_CHECK) > /dev/null 2>&1; then \
 	  $(REMOTE) $(RUN.JAVA) -version; \
 	  echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \
 	  "to bootstrap this build" 1>&2; \