+
+Compose_Base_Java_Command
+ [Arguments] ${openjdk}=${JDKVERSION}
+ [Documentation] Return string suitable for launching Java programs over SSHLibrary, depending on JRE version needed.
+ ... Not directly related to nexus, but different versioned Java artifacts may need this.
+ BuiltIn.Return_From_Keyword_If """${openjdk}""" == "openjdk8" /usr/lib/jvm/java-1.8.0/bin/java
+ BuiltIn.Return_From_Keyword_If """${openjdk}""" == "openjdk7" /usr/lib/jvm/java-1.7.0/bin/java
+ BuiltIn.Return_From_Keyword java
+
+Compose_Full_Java_Command
+ [Arguments] ${options} ${openjdk}=${JDKVERSION}
+ [Documentation] Return full Bash command to run Java with given options.
+ ... The options may include JVM options, application command line arguments, Bash redirects and other constructs.
+ ${base_command} = Compose_Base_Java_Command openjdk=${openjdk}
+ ${full_command} = BuiltIn.Set_Variable ${base_command} ${options}
+ BuiltIn.Log ${full_command}
+ [Return] ${full_command}