mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
This rhino-narwhal patch can be applied to add JAVA_OPTS support when running Cappuccino utilities through rhino. This generally improves configurability for special cases, and specifically enables a work around for the "failed to map segment from shared object" error on some platforms.
13 lines
529 B
Diff
13 lines
529 B
Diff
diff -rupN a/engines/rhino/bin/narwhal-rhino b/engines/rhino/bin/narwhal-rhino
|
|
--- a/engines/rhino/bin/narwhal-rhino 2011-11-16 11:01:40.000000000 +0000
|
|
+++ b/engines/rhino/bin/narwhal-rhino 2012-04-23 18:35:45.000000000 +0100
|
|
@@ -22,7 +22,7 @@ fi
|
|
CLASSPATH=$NARWHAL_ENGINE_HOME/jars/jna.jar
|
|
BOOTCLASSPATH=$NARWHAL_ENGINE_HOME/jars/js.jar
|
|
|
|
-JAVA_OPTS="-Dnarwhal.http_proxy=$http_proxy"
|
|
+JAVA_OPTS="-Dnarwhal.http_proxy=$http_proxy $JAVA_OPTS"
|
|
|
|
if [ -n "$NARWHAL_CLASSPATH" ]; then
|
|
CLASSPATH=$NARWHAL_CLASSPATH:$CLASSPATH
|