--- a/components/grails/Makefile Wed Mar 05 02:53:23 2014 -0800
+++ b/components/grails/Makefile Mon Mar 10 07:11:21 2014 -0700
@@ -20,7 +20,7 @@
#
#
-# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
#
include ../../make-rules/shared-macros.mk
@@ -38,9 +38,19 @@
include ../../make-rules/ant.mk
include ../../make-rules/ips.mk
+# Make sure we use the specially modified versions of grails and grails-debug
+COMPONENT_POST_UNPACK_ACTION = \
+ $(CP) $(COMPONENT_DIR)/files/grails $(SOURCE_DIR)/bin; \
+ $(CP) $(COMPONENT_DIR)/files/grails-debug $(SOURCE_DIR)/bin
+
COMPONENT_PRE_BUILD_ACTION = $(MKDIR) $(@D)/tmp
COMPONENT_BUILD_ENV += "ANT_OPTS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp"
+# Need to package the .jar files we've built, not the ones included in
+# the source tarball.
+PKG_PROTO_DIRS = $(BUILD_DIR_32) $(MANGLED_DIR) $(PROTO_DIR) $(@D) \
+ $(COMPONENT_DIR) $(COMPONENT_SRC)
+
# common targets
build: $(BUILD_32)