in plugin-unity-agent/src/main/kotlin/jetbrains/buildServer/unity/license/commands/ActivateProLicenseCommand.kt [30:47]
override fun makeProgramCommandLine(): ProgramCommandLine {
val feature = build.getBuildFeaturesOfType(BUILD_FEATURE_TYPE).first()
val arguments = buildList {
addAll(sequenceOf("-quit", "-batchmode", "-nographics"))
addIfPresent(feature, PARAM_SERIAL_NUMBER, "-serial")
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,
)
}