plugin-unity-agent/src/main/kotlin/jetbrains/buildServer/unity/license/commands/ActivateProLicenseCommand.kt [36:53]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - addIfPresent(feature, PARAM_USERNAME, "-username") addIfPresent(feature, PARAM_PASSWORD, "-password") addAll(sequenceOf("-logFile", resolvePath(logFile.absolutePathString()))) } return SimpleProgramCommandLine( context.environmentVariables, resolvePath(context.workingDirectory), resolvePath(unityEnvironment.unityPath), arguments, ) } // We don't fail fast here for backwards compatibility - do we really need this? private fun MutableList.addIfPresent(feature: AgentBuildFeature, parameterName: String, editorArgument: String) { feature.parameters[parameterName]?.let { add(editorArgument) add(it.trim()) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - plugin-unity-agent/src/main/kotlin/jetbrains/buildServer/unity/license/commands/ReturnProLicenseCommand.kt [35:52]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - addIfPresent(feature, PARAM_USERNAME, "-username") addIfPresent(feature, PARAM_PASSWORD, "-password") addAll(sequenceOf("-logFile", resolvePath(logFile.absolutePathString()))) } return SimpleProgramCommandLine( context.environmentVariables, resolvePath(context.workingDirectory), resolvePath(unityEnvironment.unityPath), arguments, ) } // We don't fail fast here for backwards compatibility - do we really need this? private fun MutableList.addIfPresent(feature: AgentBuildFeature, parameterName: String, editorArgument: String) { feature.parameters[parameterName]?.let { add(editorArgument) add(it.trim()) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -