cassandra: fix jamm path for nodetool.

Closes Homebrew/homebrew#26795.
Closes Homebrew/homebrew#27657.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Daniel Smedegaard Buus 2014-03-18 08:54:53 +01:00 committed by Mike McQuaid
parent b49035981b
commit 6d231c8f7c

View file

@ -20,6 +20,8 @@ class Cassandra < Formula
s.gsub! "CASSANDRA_CONF=\"$CASSANDRA_HOME/conf\"", "CASSANDRA_CONF=\"#{etc}/cassandra\""
# Jars installed to prefix, no longer in a lib folder
s.gsub! "\"$CASSANDRA_HOME\"/lib/*.jar", "\"$CASSANDRA_HOME\"/*.jar"
# The jammm Java agent is not in a lib/ subdir either:
s.gsub! "JAVA_AGENT=\"$JAVA_AGENT -javaagent:$CASSANDRA_HOME/lib/jamm-", "JAVA_AGENT=\"$JAVA_AGENT -javaagent:$CASSANDRA_HOME/jamm-"
end
rm Dir["bin/*.bat"]