com.github.easydoc.EasydocMain Maven / Gradle / Ivy
package com.github.easydoc;
import org.apache.maven.plugin.MojoExecutionException;
/*@@easydoc-start, id=easydoc-commandline@@
Running from command line
Easydoc can be run as a simple binary from command line.
java -jar easydoc.jar [inputDirectory=mysrc customCss=src/resources/my.css ...other params...]
Parameters, that you can optionally specify, are the same as in Maven plugin.
Note: Currently, only the simple string parameters are supported. Array parameters (such as
includes and excludes) and structured parameters (such as sourceBrowser) support is coming soon.
@@easydoc-end@@*/
public class EasydocMain {
public static void main(String[] args) {
try {
EasydocMojo mojo = new EasydocMojo();
//TODO: setup the log level
CommandLineMojoUtils.injectMojoProperties(mojo, args);
mojo.execute();
}
catch(MojoExecutionException e) {
System.err.println("Error: " + e.getMessage());
System.exit(1);
}
catch(CommandLineMojoUtils.ArgException e) {
System.err.println("Error: " + e.getMessage());
System.exit(1);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy