Class GradleErrorDecoder

java.lang.Object
net.mcreator.gradle.GradleErrorDecoder

public class GradleErrorDecoder extends Object
  • Constructor Details

    • GradleErrorDecoder

      public GradleErrorDecoder()
  • Method Details

    • processErrorAndShowMessage

      public static int processErrorAndShowMessage(String out, String err, MCreator whereToShow)
      This method tries to decode task result based on given parameters, returns status code and shows error message if error is detected
      Parameters:
      out - String containing data from out stream
      err - String containing data from err stream
      whereToShow - Parent window on which to show the error dialog
      Returns:
      One of GradleTaskResult status codes, STATUS_UNKNOWN if GradleErrorDecoder can't decide the type of error
    • isErrorCausedByCorruptedCaches

      public static boolean isErrorCausedByCorruptedCaches(String errortext)
    • doesErrorSuggestRerun

      public static boolean doesErrorSuggestRerun(String errortext)