use of org.gradle.api.internal.plugins.WindowsStartScriptGenerator in project gradle by gradle.
the class CreateStartScripts method generate.
@TaskAction
public void generate() {
StartScriptGenerator generator = new StartScriptGenerator(unixStartScriptGenerator, windowsStartScriptGenerator);
generator.setApplicationName(getApplicationName());
generator.setMainClassName(getMainClassName());
generator.setDefaultJvmOpts(getDefaultJvmOpts());
generator.setOptsEnvironmentVar(getOptsEnvironmentVar());
generator.setExitEnvironmentVar(getExitEnvironmentVar());
generator.setClasspath(getRelativeClasspath());
generator.setScriptRelPath(getExecutableDir() + "/" + getUnixScript().getName());
generator.generateUnixScript(getUnixScript());
generator.generateWindowsScript(getWindowsScript());
}
Aggregations