Class MetadataGeneratorUtil
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.meta.MetadataGeneratorUtil
-
public final class MetadataGeneratorUtil extends Object
Class which handles all the metadata generation and writing calls.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MetadataGeneratorUtil()
Stop instances being created.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
generate(String path, OutputStream out, String... moduleFolders)
Generate metadata from the module source files available in the input argument path.private static List<File>
getTargetFiles(String path, String... moduleFolders)
Get files that represent modules.
-
-
-
Constructor Detail
-
MetadataGeneratorUtil
private MetadataGeneratorUtil()
Stop instances being created.
-
-
Method Detail
-
generate
public static void generate(String path, OutputStream out, String... moduleFolders) throws IOException, CheckstyleException
Generate metadata from the module source files available in the input argument path.- Parameters:
path
- argumentsout
- OutputStream for error messagesmoduleFolders
- folders to check- Throws:
IOException
- ioExceptionCheckstyleException
- checkstyleException
-
getTargetFiles
private static List<File> getTargetFiles(String path, String... moduleFolders) throws IOException
Get files that represent modules.- Parameters:
moduleFolders
- folders to checkpath
- rootPath- Returns:
- files for scrapping javadoc and generation of metadata files
- Throws:
IOException
- ioException
-
-