Package com.google.appengine.tools.admin
Class Utility
java.lang.Object
com.google.appengine.tools.admin.Utility
Utility methods for this package.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcalculatePath(File f, File base) static booleanisOsUnix()Test for Unix (to include MacOS), vice Windows.static booleanTest for Windows, vice Unix (to include MacOS).static StringjsonEscape(String s) Escapes the string as a JSON value.
-
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
-
jsonEscape
Escapes the string as a JSON value.- Parameters:
s- raw string that we want to set as JSON value.- Returns:
- unquoted JSON escaped string
-