Class Utility

java.lang.Object
com.google.appengine.tools.admin.Utility

public class Utility extends Object
Utility methods for this package.
  • Method Details

    • isOsUnix

      public static boolean isOsUnix()
      Test for Unix (to include MacOS), vice Windows.
    • isOsWindows

      public static boolean isOsWindows()
      Test for Windows, vice Unix (to include MacOS).
    • calculatePath

      public static String calculatePath(File f, File base)
    • jsonEscape

      public static String jsonEscape(String s)
      Escapes the string as a JSON value.
      Parameters:
      s - raw string that we want to set as JSON value.
      Returns:
      unquoted JSON escaped string