Browse Source

issue #1048: add README.md file for Java based frameworks, make java 8 install script return 0

marko asplund 11 years ago
parent
commit
770dde26db
2 changed files with 16 additions and 0 deletions
  1. 15 0
      frameworks/Java/README.md
  2. 1 0
      toolset/setup/linux/languages/java8.sh

+ 15 - 0
frameworks/Java/README.md

@@ -0,0 +1,15 @@
+# Installation and Bash Configuration
+
+In order to declare that your framework requires Java, you should have an `install.sh`
+that contains at least
+
+    #!/bin/bash
+
+    fw_depends java
+
+This installs the OpenJDK 7 JVM.
+
+Frameworks can also choose to install Oracle Java 8 JVM by declaring a dependency on "java8"
+instead of java. In order to use Java 8 JVM frameworks need to add the following line in their "bash_profile.sh" file:
+
+export JAVA_HOME=/opt/java8

+ 1 - 0
toolset/setup/linux/languages/java8.sh

@@ -22,3 +22,4 @@ do
   fi
   fi
 done
 done
 
 
+return 0