generatePathingJar
public static org.gradle.api.file.FileCollection generatePathingJar(org.gradle.api.Project project,
java.lang.String taskName,
org.gradle.api.file.FileCollection classpath,
boolean alwaysUsePathingJar)
throws java.io.IOException
Creates a pathing JAR to reference for a JavaExec task. This is used to address long
classpath failures in Java processes. We pile all of the non-directory dependencies into a single jar, whose
manifest contains relative references to all of these dependencies. The result, the classpath is dramatically
shorter and the task still has access to all of the same dependencies.
- Parameters:
project - the Project
taskName - the name of the task to create the pathing JAR for
classpath - the classpath for the task
alwaysUsePathingJar - pathing jar is created when set to true,
else depending on the inclusion of 'restli-tools-scala' pathing jar may not be created
- Returns:
- the new classpath for the task
- Throws:
java.io.IOException - if there any issues creating the pathing JAR