Package com.liferay.portal.tools
Class ToolsUtil
Object
com.liferay.portal.tools.ToolsUtil
- Author:
- Brian Wing Shun Chan, Charles May, Alexander Chow, Harry Mark, Tariq Dweik, Glenn Powell, Raymond Augé, Prashant Dighe, Shuyang Zhou, James Lefeu, Miguel Pastor, Cody Hoag, James Hinkey, Hugo Huijser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringencodeEnvironmentProperty(String property) static StringgetContent(String fileName) static intstatic intstatic intstatic intstatic StringgetPackagePath(File file) static StringgetPackagePath(String fileName) static booleanisInsideQuotes(String s, int pos) static booleanisInsideQuotes(String s, int pos, boolean allowEscapedQuotes) static StringstripFullyQualifiedClassNames(String content, String packagePath) static StringstripFullyQualifiedClassNames(String content, String imports, String packagePath) static voidwriteFile(File file, String content, String header, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames, String packagePath) static voidwriteFile(File file, String content, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames) static voidwriteFile(File file, String content, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames, String packagePath) static voidstatic voidstatic voidwriteFileRaw(File file, String content, Set<String> modifiedFileNames)
-
Field Details
-
AUTHOR
- See Also:
-
PLUGINS_MAX_DIR_LEVEL
public static final int PLUGINS_MAX_DIR_LEVEL- See Also:
-
PORTAL_MAX_DIR_LEVEL
public static final int PORTAL_MAX_DIR_LEVEL- See Also:
-
-
Constructor Details
-
ToolsUtil
public ToolsUtil()
-
-
Method Details
-
encodeEnvironmentProperty
-
getContent
- Throws:
Exception
-
getLevel
-
getLevel
-
getLevel
-
getLevel
-
getPackagePath
-
getPackagePath
-
isInsideQuotes
-
isInsideQuotes
-
stripFullyQualifiedClassNames
public static String stripFullyQualifiedClassNames(String content, String packagePath) throws IOException - Throws:
IOException
-
stripFullyQualifiedClassNames
public static String stripFullyQualifiedClassNames(String content, String imports, String packagePath) throws IOException - Throws:
IOException
-
writeFile
public static void writeFile(File file, String content, Set<String> modifiedFileNames) throws IOException - Throws:
IOException
-
writeFile
public static void writeFile(File file, String content, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames) throws IOException- Throws:
IOException
-
writeFile
public static void writeFile(File file, String content, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames, String packagePath) throws IOException- Throws:
IOException
-
writeFile
public static void writeFile(File file, String content, String author, Set<String> modifiedFileNames) throws IOException - Throws:
IOException
-
writeFile
public static void writeFile(File file, String content, String header, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames, String packagePath) throws IOException- Throws:
IOException
-
writeFileRaw
public static void writeFileRaw(File file, String content, Set<String> modifiedFileNames) throws IOException - Throws:
IOException
-