Class RunConfigUtils
java.lang.Object
net.fabricmc.loom.configuration.ide.RunConfigUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateRunDirectory(RunConfiguration runConfiguration) static StringformatEnvVars(RunConfiguration run, String pattern) static StringformatRunDir(RunConfiguration runConfig, org.gradle.api.Project project, Function<File, String> absoluteFormatter, Function<String, String> relativeFormatter) Format the run directory for use in an IDE run configuration.static StringgetDisplayName(RunConfiguration run, org.gradle.api.Project project) static StringgetMainClass(String side, LoomGradleExtension extension)
-
Constructor Details
-
RunConfigUtils
public RunConfigUtils()
-
-
Method Details
-
createRunDirectory
- Throws:
IOException
-
getMainClass
-
formatRunDir
public static String formatRunDir(RunConfiguration runConfig, org.gradle.api.Project project, Function<File, String> absoluteFormatter, Function<String, String> relativeFormatter) Format the run directory for use in an IDE run configuration. If the run directory is within the root project, it will be formatted as a relative path from the root project. Otherwise, it will be formatted as an absolute path.- Parameters:
runConfig- The run configuration to format the run directory for.project- The project to format the run directory for.absoluteFormatter- A function that formats an absolute path for use in an IDE run configuration.relativeFormatter- A function that formats a relative path for use in an IDE run configuration.
-
getDisplayName
-
formatEnvVars
-