override fun makeProgramCommandLine()

in plugin-unity-agent/src/main/kotlin/jetbrains/buildServer/unity/license/commands/ReturnProLicenseCommand.kt [30:46]


    override fun makeProgramCommandLine(): ProgramCommandLine {
        val feature = build.getBuildFeaturesOfType(BUILD_FEATURE_TYPE).first()

        val arguments = buildList {
            addAll(sequenceOf("-quit", "-batchmode", "-nographics", "-returnlicense"))
            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,
        )
    }