public class JavaContainerMojo extends AbstractContainerMojo
AbstractContainerMojo.SourceEditor
Modifier and Type | Field and Description |
---|---|
protected Model |
model
Cached model.
|
DEFAULT_SOURCE_INCLUDES
Constructor and Description |
---|
JavaContainerMojo()
Creates a new
JavaContainerMojo instance. |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected void |
generateImplementation(List roots,
Implementation impl) |
protected void |
generateSpecification(List roots,
Specification spec) |
protected Model |
getModel()
Gets the model of the current execution.
|
protected Module |
getModule()
Accessor to the currently executed jDTAUS module.
|
protected File |
getOutputDirectory()
Gets the output directory of the mojo.
|
protected File |
getSourceRoot()
Gets the source root to create new source files in.
|
protected String |
getTargetEditor()
Gets the target editor to use when generating source code.
|
protected Module |
getTestModule()
Accessor to the currently executed jDTAUS test module.
|
protected String |
getTypeFromClassName(String className) |
protected void |
writeContainerReport(Model model,
String name) |
disableThreadContextClassLoader, edit, enableThreadContextClassLoader, formatComment, getAllSources, getClasspathElements, getEncoding, getLocale, getMavenProject, getModelManager, getRuntimeClassLoader, getSource, getTestClassLoader, getTestClasspathElements, getTestSources, getVelocity, indent, isClasspathElementDefaultExlude, isClasspathElementIncluded, isTestClasspathElementIncluded, isTestMode, load, save
getLog, getPluginContext, setLog, setPluginContext
public JavaContainerMojo()
JavaContainerMojo
instance.public void execute() throws MojoExecutionException, MojoFailureException
protected void generateImplementation(List roots, Implementation impl) throws MojoExecutionException, MojoFailureException
protected void generateSpecification(List roots, Specification spec) throws MojoExecutionException, MojoFailureException, IOException
protected Model getModel()
protected final Module getModule()
null
if no module
is defined for the currently executed jDTAUS module.protected final File getOutputDirectory()
protected final File getSourceRoot()
protected final String getTargetEditor()
protected final Module getTestModule()
null
if
no test module is defined for the currently executed jDTAUS module.protected String getTypeFromClassName(String className)
protected void writeContainerReport(Model model, String name) throws JAXBException, IOException, MojoExecutionException
Copyright © 2005–2014 jDTAUS. All rights reserved.