Class LegacyLangFolderNotice
java.lang.Object
com.ultikits.ultitools.utils.LegacyLangFolderNotice
Reports legacy language directories at startup without opening or modifying their contents.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcollectLangDirectory(Path owner, Path displayRoot, List<String> folders) private static voidcollectModuleDirectories(Path config, Path displayRoot, List<String> folders) private static booleanisDirectory(Path path, LinkOption... options) static voidLogs one localized INFO notice if legacy language directories are found.
-
Field Details
-
DISPLAY_LIMIT
private static final int DISPLAY_LIMIT- See Also:
-
-
Constructor Details
-
LegacyLangFolderNotice
private LegacyLangFolderNotice()
-
-
Method Details
-
report
Logs one localized INFO notice if legacy language directories are found. The data folder andpluginConfigmay be symbolic links; their discovered module andlangentries are not followed if linked. A filesystem failure is logged at FINE without discarding directories already found.- Parameters:
dataFolder- the framework data folderlogger- the framework logger
-
collectModuleDirectories
private static void collectModuleDirectories(Path config, Path displayRoot, List<String> folders) throws IOException - Throws:
IOException
-
collectLangDirectory
private static void collectLangDirectory(Path owner, Path displayRoot, List<String> folders) throws IOException - Throws:
IOException
-
isDirectory
- Throws:
IOException
-