public class JavaExecWinFriendly extends Object
Thanks to Thipor Kong for his workaround for Gradle’s windows problems.
https://discuss.gradle.org/t/javaexec-fails-for-long-classpaths-on-windows/15266
Modifier and Type | Field and Description |
---|---|
static String |
LONG_CLASSPATH_JAR_PREFIX |
Modifier and Type | Method and Description |
---|---|
static ExecResult |
javaExec(Project project,
Action<JavaExecSpec> spec)
Calls javaExec() in a way which is friendly with windows classpath limitations.
|
static ExecResult |
javaExecWithoutGradle(Action<JavaExecSpec> spec)
Calls javaExec() in a way which is friendly with windows classpath limitations, and doesn’t require gradle.
|
public static final String LONG_CLASSPATH_JAR_PREFIX
public static ExecResult javaExec(Project project, Action<JavaExecSpec> spec) throws IOException
Calls javaExec() in a way which is friendly with windows classpath limitations.
IOException
public static ExecResult javaExecWithoutGradle(Action<JavaExecSpec> spec) throws IOException
Calls javaExec() in a way which is friendly with windows classpath limitations, and doesn’t require gradle.
IOException