brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drigod...@apache.org
Subject [1/2] brooklyn-library git commit: Specify Java version for JBoss
Date Mon, 17 Apr 2017 16:30:39 GMT
Repository: brooklyn-library
Updated Branches:
  refs/heads/master 115febd64 -> 7abc83f4c


Specify Java version for JBoss


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-library/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-library/commit/e8c7b9e9
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-library/tree/e8c7b9e9
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-library/diff/e8c7b9e9

Branch: refs/heads/master
Commit: e8c7b9e9baf6d2f9c58cd5ef52d2821721c4d24f
Parents: 115febd
Author: Duncan Godwin <duncan.godwin@cloudsoftcorp.com>
Authored: Fri Apr 14 13:23:48 2017 +0100
Committer: Duncan Godwin <duncan.godwin@cloudsoftcorp.com>
Committed: Fri Apr 14 13:23:48 2017 +0100

----------------------------------------------------------------------
 .../apache/brooklyn/entity/webapp/jboss/JBoss6SshDriver.java | 8 ++++++++
 .../apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java | 8 ++++++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/e8c7b9e9/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss6SshDriver.java
----------------------------------------------------------------------
diff --git a/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss6SshDriver.java
b/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss6SshDriver.java
index 70d6a14..1426f5b 100644
--- a/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss6SshDriver.java
+++ b/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss6SshDriver.java
@@ -90,6 +90,14 @@ public class JBoss6SshDriver extends JavaWebAppSshDriver implements JBoss6Driver
     }
 
     @Override
+    public boolean installJava() {
+        /*
+         * JBoss only works on Java 7 or lower, see here: https://developer.jboss.org/message/808212
+         */
+        return checkForAndInstallJava("1.7");
+    }
+
+    @Override
     public void install() {
         List<String> urls = resolver.getTargets();
         String saveAs = resolver.getFilename();

http://git-wip-us.apache.org/repos/asf/brooklyn-library/blob/e8c7b9e9/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
----------------------------------------------------------------------
diff --git a/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
b/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
index 8a40947..5812f3a 100644
--- a/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
+++ b/software/webapp/src/main/java/org/apache/brooklyn/entity/webapp/jboss/JBoss7SshDriver.java
@@ -110,6 +110,14 @@ public class JBoss7SshDriver extends JavaWebAppSshDriver implements JBoss7Driver
     }
 
     @Override
+    public boolean installJava() {
+        /*
+         * JBoss only works on Java 7 or lower, see here: https://developer.jboss.org/message/808212
+         */
+        return checkForAndInstallJava("1.7");
+    }
+
+    @Override
     public void install() {
         List<String> urls = resolver.getTargets();
         String saveAs = resolver.getFilename();


Mime
View raw message