Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Jul 31, 2020
1 parent 7362801 commit ac57d48
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,31 +104,27 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo
/**
*
*/
//@MojoParameter(expression="${plugin.artifacts}", readonly = true )
@Parameter(property="plugin.artifacts", readonly=true)
private java.util.List<Artifact> pluginArtifacts;

/**
* Specify the directory where to place generated source files (same behaviour of -s option)
*
*/
//@MojoParameter(required = false, description = "Specify the directory where to place generated source files (same behaviour of -s option)")
@Parameter
private File outputDirectory;

/**
* Annotation Processor FQN (Full Qualified Name) - when processors are not specified, the default discovery mechanism will be used
*
*/
//@MojoParameter(required = false, description = "Annotation Processor FQN (Full Qualified Name) - when processors are not specified, the default discovery mechanism will be used")
@Parameter
private String[] processors;

/**
* Additional compiler arguments
*
*/
//@MojoParameter(required = false, description = "Additional compiler arguments")
@Parameter
private String compilerArguments;

Expand All @@ -142,44 +138,38 @@ public abstract class AbstractAnnotationProcessorMojo extends AbstractMojo
/**
* Controls whether or not the output directory is added to compilation
*/
//@MojoParameter(required = false, description = "Controls whether or not the output directory is added to compilation")
@Parameter
private Boolean addOutputDirectoryToCompilationSources;

/**
* Indicates whether the build will continue even if there are compilation errors; defaults to true.
*/
//@MojoParameter(required = true, defaultValue = "true", expression = "${annotation.failOnError}", description = "Indicates whether the build will continue even if there are compilation errors; defaults to true.")
@Parameter( defaultValue="true", required=true, property="annotation.failOnError" )
private Boolean failOnError = true;

/**
* Indicates whether the compiler output should be visible, defaults to true.
*
*/
//@MojoParameter(required = true, defaultValue = "true", expression = "${annotation.outputDiagnostics}", description = "Indicates whether the compiler output should be visible, defaults to true.")
@Parameter( defaultValue="true", required=true, property="annotation.outputDiagnostics" )
private boolean outputDiagnostics = true;

/**
* System properties set before processor invocation.
*
*/
//@MojoParameter(required = false, description = "System properties set before processor invocation.")
@Parameter
private java.util.Map<String,String> systemProperties;

/**
* includes pattern
*/
//@MojoParameter( description="includes pattern")
@Parameter
private String[] includes;

/**
* excludes pattern
*/
//@MojoParameter( description="excludes pattern")
@Parameter
private String[] excludes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,27 @@ public class MainAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo
* project classpath
*
*/
//@MojoParameter(expression = "${project.compileClasspathElements}", required = true, readonly = true)
@Parameter( defaultValue="${project.compileClasspathElements}", required=true, readonly=true)
private List<String> classpathElements;

/**
* project sourceDirectory
*
*/
//@MojoParameter(expression = "${project.build.sourceDirectory}", required = true)
@Parameter( defaultValue="${project.build.sourceDirectory}", required = true)
private File sourceDirectory;

/**
* default output directory
*
*/
//@MojoParameter(expression = "${project.build.directory}/generated-sources/apt", required = true)
@Parameter( defaultValue="${project.build.directory}/generated-sources/apt", required = true)
private File defaultOutputDirectory;

/**
* Set the destination directory for class files (same behaviour of -d option)
*
*/
//@MojoParameter(required = false, expression="${project.build.outputDirectory}", description = "Set the destination directory for class files (same behaviour of -d option)")
@Parameter( defaultValue="${project.build.outputDirectory}")
private File outputClassDirectory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,26 @@ public class TestAnnotationProcessorMojo extends AbstractAnnotationProcessorMojo
* project classpath
*
*/
//@MojoParameter(expression = "${project.testClasspathElements}", required = true, readonly = true)
@Parameter( defaultValue="${project.testClasspathElements}", required=true, readonly=true)
private List<String> classpathElements;


/**
*
*/
//@MojoParameter(expression = "${project.build.testSourceDirectory}", required = true)
@Parameter( defaultValue="${project.build.testSourceDirectory}", required = true)
private File sourceDirectory;

/**
*
*/
//@MojoParameter(expression = "${project.build.directory}/generated-sources/apt-test", required = true)
@Parameter( defaultValue="${project.build.directory}/generated-sources/apt-test", required = true)
private File defaultOutputDirectory;

/**
* Set the destination directory for class files (same behaviour of -d option)
*
*/
//@MojoParameter(required = false, expression="${project.build.testOutputDirectory}", description = "Set the destination directory for class files (same behaviour of -d option)")
@Parameter( defaultValue="${project.build.testOutputDirectory}")
private File outputClassDirectory;

Expand Down

0 comments on commit ac57d48

Please sign in to comment.