Skip to content
This repository

new formula for jboss as 7 appserver #11797

Closed
wants to merge 1 commit into from

3 participants

Sandro Sonntag Richard Kettelerij Adam Vandenberg
Sandro Sonntag

Java EE developers would be very pleased about this formula.

Sandro

Richard Kettelerij

+1, would love to see this formula in homebrew.

Adam Vandenberg
Owner

Not keen on having "7" in the formula name; is the intent to allow multiple JbossAs formulas side-by-side?

Adam Vandenberg
Owner

I can't even brew fetch this to test the download, it is way too slow. Is there a faster mirror?

Closing due to no response, but please feel free to reopen with a fixed formula name and using sha1 instead of md5.

Adam Vandenberg adamv closed this September 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 21, 2012
new formula for jboss as 7 appserver 814e654
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 28 additions and 0 deletions. Show diff stats Hide diff stats

  1. 28  Library/Formula/jboss-as7.rb
28  Library/Formula/jboss-as7.rb
... ...
@@ -0,0 +1,28 @@
  1
+require 'formula'
  2
+
  3
+class JbossAs7 < Formula
  4
+  homepage 'http://www.jboss.org/as7'
  5
+  url 'http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.zip'
  6
+  md5 '175c92545454f4e7270821f4b8326c4e'
  7
+  version "7.1.1.Final"
  8
+
  9
+  def install
  10
+    rm_f Dir["bin/*.bat"]
  11
+
  12
+    libexec.install Dir['*']
  13
+    bin.install_symlink "#{libexec}/bin/standalone.sh" => "as7standalone"
  14
+    bin.install_symlink "#{libexec}/bin/domain.sh" => "as7domain"
  15
+
  16
+    inreplace "#{libexec}/bin/standalone.conf",
  17
+      "#JAVA_OPTS=\"$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n\"",
  18
+      "JAVA_OPTS=\"$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n\""
  19
+
  20
+    inreplace "#{libexec}/bin/standalone.conf",
  21
+        "#JAVA_HOME=\"/opt/java/jdk\"",
  22
+        "JAVA_HOME=\"$(/usr/libexec/java_home)\"\nJBOSS_HOME=\"#{libexec}\""
  23
+
  24
+    inreplace "#{libexec}/bin/domain.conf",
  25
+        "#JAVA_HOME=\"/opt/java/jdk\"",
  26
+        "JAVA_HOME=\"$(/usr/libexec/java_home)\"\nJBOSS_HOME=\"#{libexec}\""
  27
+  end
  28
+end
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.