in integration/geb-gradle/src/main/groovy/geb/gradle/browserstack/BrowserStackLocal.groovy [45:91]
abstract Property<String> getAccessKey()
@Internal
abstract Property<String> getIdentifier()
@Internal
abstract Property<Boolean> getForce()
@Internal
abstract Property<String> getProxyHost()
@Internal
abstract Property<String> getProxyPort()
@Internal
abstract Property<String> getProxyUser()
@Internal
abstract Property<String> getProxyPass()
@Internal
abstract ListProperty<URL> getApplicationUrls()
@Override
List<Object> assembleCommandLine() {
def commandLine = [executablePath, accessKey.get(), '-localIdentifier', identifier.get()]
if (applicationUrls.getOrElse([])) {
commandLine << "-only" << assembleAppSpecifier()
}
if (proxyHost.present) {
commandLine << "-proxyHost" << proxyHost.get()
}
if (proxyPort.present) {
commandLine << "-proxyPort" << proxyPort.get()
}
if (proxyUser.present) {
commandLine << "-proxyUser" << proxyUser.get()
}
if (proxyPass.present) {
commandLine << "-proxyPass" << proxyPass.get()
}
if (force.getOrElse(false)) {
commandLine << "-forcelocal"
}
commandLine.addAll(additionalOptions.get())
commandLine
}