Add some comments and clean up.

This commit is contained in:
rick.parker 2017-11-15 15:16:14 +00:00
parent 1d5d54e063
commit 6fc981e13d

View File

@ -8,6 +8,11 @@ import java.nio.file.Files
import java.nio.file.Paths
import kotlin.streams.asSequence
/**
* A wrapper around JMeter to make it run without having a JMeter download installed locally. One mode is used for
* running on a remote cluster using an all-in-one bundle JAR using Capsule. The other is just used to run based on current
* classpath, but with optional SSH tunnelling logic automatically invoked.
*/
class Launcher {
companion object {
@JvmStatic
@ -50,6 +55,8 @@ class Launcher {
}
private fun maybeOpenSshTunnels(args: Array<String>): Array<String> {
// We trim the args at the point "-Xssh" appears in the array of args. Anything after that is a host to
// SSH tunnel to.
var index = 0
for (arg in args) {
if (arg == "-Xssh") {