public class org.codehaus.mojo.jaxb.javageneration.TestXjcMojo extends org.codehaus.mojo.jaxb.javageneration.AbstractJavaGeneratorMojo
{
public static final java.lang.String STALE_FILENAME;
public static final java.lang.String STANDARD_TEST_SOURCE_DIRECTORY;
public static final java.util.List STANDARD_TEST_SOURCE_EXCLUDE_FILTERS;
public static final java.lang.String STANDARD_TEST_XJB_DIRECTORY;
public static final java.util.List STANDARD_TEST_XJB_EXCLUDE_FILTERS;
private java.io.File outputDirectory;
private java.util.List testSources;
private java.util.List testXjbSources;
private java.util.List testSourceExcludeFilters;
private java.util.List testXjbExcludeFilters;
private boolean skipTestXjc;
public void <init>()
{
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
specialinvoke v.<org.codehaus.mojo.jaxb.javageneration.AbstractJavaGeneratorMojo: void <init>()>();
return;
}
protected boolean shouldExecutionBeSkipped()
{
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
boolean v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
v = v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: boolean skipTestXjc>;
return v;
}
protected java.util.List getSources()
{
java.lang.String[] v;
org.apache.maven.plugin.logging.Log v, v;
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
java.io.File v;
java.util.List v, v, v, v, v;
org.apache.maven.project.MavenProject v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
v = v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List testSourceExcludeFilters>;
if v != null goto label;
v = <org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List STANDARD_TEST_SOURCE_EXCLUDE_FILTERS>;
goto label;
label:
v = v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List testSourceExcludeFilters>;
label:
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.plugin.logging.Log getLog()>();
staticinvoke <org.codehaus.mojo.jaxb.shared.filters.Filters: void initialize(org.apache.maven.plugin.logging.Log,java.util.List)>(v, v);
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.project.MavenProject getProject()>();
v = virtualinvoke v.<org.apache.maven.project.MavenProject: java.io.File getBasedir()>();
v = v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List testSources>;
v = newarray (java.lang.String)[1];
v[0] = "src/test/xsd";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.plugin.logging.Log getLog()>();
v = staticinvoke <org.codehaus.mojo.jaxb.shared.FileSystemUtilities: java.util.List filterFiles(java.io.File,java.util.List,java.util.List,org.apache.maven.plugin.logging.Log,java.lang.String,java.util.List)>(v, v, v, v, "testSources", v);
return v;
}
protected java.util.List getSourceXJBs()
{
org.apache.maven.plugin.logging.Log v, v;
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
java.io.File v;
java.util.List v, v, v, v;
org.apache.maven.project.MavenProject v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
v = v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List testXjbExcludeFilters>;
if v != null goto label;
v = <org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List STANDARD_TEST_XJB_EXCLUDE_FILTERS>;
goto label;
label:
v = v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List testXjbExcludeFilters>;
label:
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.plugin.logging.Log getLog()>();
staticinvoke <org.codehaus.mojo.jaxb.shared.filters.Filters: void initialize(org.apache.maven.plugin.logging.Log,java.util.List)>(v, v);
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.project.MavenProject getProject()>();
v = virtualinvoke v.<org.apache.maven.project.MavenProject: java.io.File getBasedir()>();
v = v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List testXjbSources>;
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.plugin.logging.Log getLog()>();
v = staticinvoke <org.codehaus.mojo.jaxb.shared.FileSystemUtilities: java.util.List filterFiles(java.io.File,java.util.List,java.lang.String,org.apache.maven.plugin.logging.Log,java.lang.String,java.util.List)>(v, v, "src/test/xjb", v, "testXjbSources", v);
return v;
}
protected java.lang.String getStaleFileName()
{
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
return "testXjcStaleFlag";
}
protected java.io.File getOutputDirectory()
{
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
java.io.File v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
v = v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.io.File outputDirectory>;
return v;
}
protected java.util.List getClasspath() throws org.apache.maven.plugin.MojoExecutionException
{
java.lang.Throwable v;
java.util.List v;
org.apache.maven.project.MavenProject v;
org.apache.maven.plugin.MojoExecutionException v;
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
label:
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.project.MavenProject getProject()>();
v = virtualinvoke v.<org.apache.maven.project.MavenProject: java.util.List getTestClasspathElements()>();
label:
return v;
label:
v := @caughtexception;
v = new org.apache.maven.plugin.MojoExecutionException;
specialinvoke v.<org.apache.maven.plugin.MojoExecutionException: void <init>(java.lang.String,java.lang.Exception)>("Could not retrieve Compile classpath.", v);
throw v;
catch org.apache.maven.artifact.DependencyResolutionRequiredException from label to label with label;
}
protected void addGeneratedSourcesToProjectSourceRoot()
{
org.apache.maven.project.MavenProject v;
java.lang.String v;
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
java.io.File v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.project.MavenProject getProject()>();
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.io.File getOutputDirectory()>();
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
virtualinvoke v.<org.apache.maven.project.MavenProject: void addTestCompileSourceRoot(java.lang.String)>(v);
return;
}
protected void addResource(org.apache.maven.model.Resource)
{
org.apache.maven.model.Resource v;
org.codehaus.mojo.jaxb.javageneration.TestXjcMojo v;
org.apache.maven.project.MavenProject v;
v := @this: org.codehaus.mojo.jaxb.javageneration.TestXjcMojo;
v := @parameter: org.apache.maven.model.Resource;
v = virtualinvoke v.<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: org.apache.maven.project.MavenProject getProject()>();
virtualinvoke v.<org.apache.maven.project.MavenProject: void addTestResource(org.apache.maven.model.Resource)>(v);
return;
}
static void <clinit>()
{
org.codehaus.mojo.jaxb.shared.filters.pattern.PatternFileFilter v, v;
java.lang.String[] v, v;
java.util.ArrayList v, v;
java.util.List v, v, v, v, v, v;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = <org.codehaus.mojo.jaxb.AbstractJaxbMojo: java.util.List STANDARD_EXCLUDE_FILTERS>;
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
v = new org.codehaus.mojo.jaxb.shared.filters.pattern.PatternFileFilter;
v = newarray (java.lang.String)[1];
v[0] = "\\.xsd";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<org.codehaus.mojo.jaxb.shared.filters.pattern.PatternFileFilter: void <init>(java.util.List,boolean)>(v, 1);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = staticinvoke <java.util.Collections: java.util.List unmodifiableList(java.util.List)>(v);
<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List STANDARD_TEST_XJB_EXCLUDE_FILTERS> = v;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = <org.codehaus.mojo.jaxb.AbstractJaxbMojo: java.util.List STANDARD_EXCLUDE_FILTERS>;
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
v = new org.codehaus.mojo.jaxb.shared.filters.pattern.PatternFileFilter;
v = newarray (java.lang.String)[1];
v[0] = "\\.xjb";
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
specialinvoke v.<org.codehaus.mojo.jaxb.shared.filters.pattern.PatternFileFilter: void <init>(java.util.List,boolean)>(v, 1);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = staticinvoke <java.util.Collections: java.util.List unmodifiableList(java.util.List)>(v);
<org.codehaus.mojo.jaxb.javageneration.TestXjcMojo: java.util.List STANDARD_TEST_SOURCE_EXCLUDE_FILTERS> = v;
return;
}
}