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 String
encodeEnvironmentProperty
(String property) static String
getContent
(String fileName) static int
static int
static int
static int
static String
getPackagePath
(File file) static String
getPackagePath
(String fileName) static boolean
isInsideQuotes
(String s, int pos) static boolean
isInsideQuotes
(String s, int pos, boolean allowEscapedQuotes) static String
stripFullyQualifiedClassNames
(String content, String packagePath) static String
stripFullyQualifiedClassNames
(String content, String imports, String packagePath) static void
writeFile
(File file, String content, String header, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames, String packagePath) static void
writeFile
(File file, String content, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames) static void
writeFile
(File file, String content, String author, Map<String, Object> jalopySettings, Set<String> modifiedFileNames, String packagePath) static void
static void
static void
writeFileRaw
(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
-