|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin
org.codehaus.mojo.xmlbeans.TestXmlBeansMojo
public class TestXmlBeansMojo
A Maven 2 plugin which parses xsd files and produces a corresponding object model based on the Apache XML Beans parser.
The plugin produces two sets of output files referred to as generated sources
and generated classes. The former is then compiled to the build
outputDirectory
. The latter is generated in this directory.
Note that the descriptions for the goal's parameters have been blatently copied from http://xmlbeans.apache.org/docs/2.0.0/guide/antXmlbean.html for convenience.
Field Summary | |
---|---|
protected File |
classGenerationDirectory
Set a location to generate CLASS files into. |
protected File |
defaultXmlConfigDir
Default xmlConfigs directory. |
protected File |
schemaDirectory
The directory where .xsd files are to be found. |
protected File |
sourceGenerationDirectory
Set a location to generate JAVA files into. |
protected File |
staleFile
The location of the flag file used to determine if the output is stale. |
Fields inherited from class org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin |
---|
catalogLocation, project |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
TestXmlBeansMojo()
Empty constructor for the XML Beans plugin. |
Method Summary | |
---|---|
File |
getBaseDir()
Returns the directory where the schemas are located. |
File |
getDefaultXmlConfigDir()
|
File |
getGeneratedClassesDirectory()
Returns the class directory of the project. |
protected File |
getGeneratedSchemaDirectory()
|
File |
getGeneratedSourceDirectory()
Returns the directory for saving generated source files. |
File |
getSchemaDirectory()
Returns the directory where the schemas are located. |
File |
getStaleFile()
|
protected List |
getXsdJars()
Returns the list of xsd jars. |
protected void |
updateProject(MavenProject project,
org.apache.xmlbeans.impl.tool.SchemaCompiler.Parameters compilerParams,
boolean stale)
|
Methods inherited from class org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin |
---|
execute, getCatalogFile, getClasspath, getCompiler, getConfigFiles, getEntityResolver, getErrorListeners, getExtensions, getJavaFiles, getJavaSource, getMdefNamespaces, getMemoryInitialSize, getMemoryMaximumSize, getName, getOutputJar, getRepackage, getWsdlFiles, getXsdFiles, hasCatalogFile, isDebug, isDownload, isJaxb, isNoAnn, isNoJavac, isNoPvr, isNoUpa, isNoVDoc, isQuiet, isVerbose, validate |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File schemaDirectory
protected File classGenerationDirectory
protected File sourceGenerationDirectory
protected File staleFile
protected File defaultXmlConfigDir
Constructor Detail |
---|
public TestXmlBeansMojo()
Method Detail |
---|
protected void updateProject(MavenProject project, org.apache.xmlbeans.impl.tool.SchemaCompiler.Parameters compilerParams, boolean stale) throws DependencyResolutionRequiredException, XmlBeansException
updateProject
in class AbstractXmlBeansPlugin
DependencyResolutionRequiredException
XmlBeansException
public File getBaseDir()
getBaseDir
in class AbstractXmlBeansPlugin
public final File getGeneratedClassesDirectory()
public final File getGeneratedSourceDirectory()
public File getStaleFile()
getStaleFile
in class AbstractXmlBeansPlugin
public File getDefaultXmlConfigDir()
getDefaultXmlConfigDir
in class AbstractXmlBeansPlugin
public File getSchemaDirectory()
getSchemaDirectory
in class AbstractXmlBeansPlugin
protected List getXsdJars()
getXsdJars
in class AbstractXmlBeansPlugin
protected File getGeneratedSchemaDirectory()
getGeneratedSchemaDirectory
in class AbstractXmlBeansPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |