Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

cassandra: Added JAVA_HOME configuration on plist #21037

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Library/Formula/cassandra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def install
end

def caveats; <<-EOS.undent
Cassandra requires the most stable version of Java 1.6.
If you got an error, try to install Java 1.6 additionally.
launchctl automatically set JAVA_HOME for Java 1.6, even if Java 1.7 is also installed.

If you plan to use the CQL shell (cqlsh), you will need the Python CQL library
installed. Since Homebrew prefers using pip for Python packages, you can
install that using:
Expand All @@ -49,6 +53,12 @@ def plist; <<-EOS.undent
<key>Label</key>
<string>#{plist_name}</string>

<key>EnvironmentVariables</key>
<dict>
<key>JAVA_HOME</key>
<string>#{`/usr/libexec/java_home -v 1.6`.chomp!}</string>
</dict>

<key>ProgramArguments</key>
<array>
<string>#{opt_prefix}/bin/cassandra</string>
Expand Down