1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| tasks.register("runWithRenderDoc", Exec) { def javaExecTask = tasks.withType(JavaExec).named("runClient").get() def javaHome = javaExecTask.javaLauncher.get().metadata.installationPath.asFile.absolutePath
commandLine = [ "E:\\RenderDoc\\renderdoccmd.exe", "capture", "--opt-hook-children", "--wait-for-exit", "--working-dir", ".", "$javaHome/bin/java.exe", "-Xmx64m", "-Xms64m", "-Dorg.gradle.appname=gradlew", "-Dorg.gradle.java.home=$javaHome", "-classpath", "gradle/wrapper/gradle-wrapper.jar", "org.gradle.wrapper.GradleWrapperMain", "runClient" ] }
|