Class RunConfigUtils

java.lang.Object
net.fabricmc.loom.configuration.ide.RunConfigUtils

public class RunConfigUtils extends Object
  • Constructor Details

    • RunConfigUtils

      public RunConfigUtils()
  • Method Details

    • createRunDirectory

      public static void createRunDirectory(RunConfiguration runConfiguration) throws IOException
      Throws:
      IOException
    • getMainClass

      @Nullable public static String getMainClass(String side, LoomGradleExtension extension)
    • 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

      public static String getDisplayName(RunConfiguration run, org.gradle.api.Project project)
    • formatEnvVars

      public static String formatEnvVars(RunConfiguration run, String pattern)