public final class JsDocUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ERROR_INIT_VM
Error message when VM could not be started using invoker.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
invokeMaven(org.apache.maven.plugin.logging.Log log,
File localRepositoryDir,
File projectFile,
List<String> goals,
Properties properties,
File invokerLog)
Invoke Maven for the given project file with a list of goals and
properties, the output will be in the invokerlog file.
|
protected static String |
readFile(File javaFile,
String encoding)
Read the given file and return the content or null if an IOException
occurs.
|
protected static final String ERROR_INIT_VM
protected static void invokeMaven(org.apache.maven.plugin.logging.Log log,
File localRepositoryDir,
File projectFile,
List<String> goals,
Properties properties,
File invokerLog)
throws org.apache.maven.shared.invoker.MavenInvocationException
maven.home Java system property or defined in
M2_HOME system env variables.log - a logger could be null.localRepositoryDir - the localRepository not null.projectFile - a not null project file.goals - a not null goals list.properties - the properties for the goals, could be null.invokerLog - the log file where the invoker will be written, if null using
System.out.org.apache.maven.shared.invoker.MavenInvocationException - if anyprotected static String readFile(File javaFile, String encoding)
javaFile - not nullencoding - could be nullFileUtils.fileRead(File, String)Copyright © 2013. All Rights Reserved.