1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.tools.plugin.extractor.annotations.scanner;
20
21 import java.io.File;
22 import java.util.ArrayList;
23 import java.util.Arrays;
24 import java.util.HashSet;
25 import java.util.List;
26 import java.util.Set;
27
28 import org.apache.maven.artifact.Artifact;
29 import org.apache.maven.project.MavenProject;
30
31
32
33
34
35 public class MojoAnnotationsScannerRequest {
36 private List<File> classesDirectories = new ArrayList<>();
37
38 private Set<Artifact> dependencies = new HashSet<>();
39
40 private List<String> includePatterns = Arrays.asList("**/*.class");
41
42 private List<File> sourceDirectories = new ArrayList<>();
43
44 private MavenProject project;
45
46 private String mavenApiVersion;
47
48 public MojoAnnotationsScannerRequest() {
49
50 }
51
52 public List<File> getClassesDirectories() {
53 return classesDirectories;
54 }
55
56 public void setClassesDirectories(List<File> classesDirectories) {
57 this.classesDirectories = classesDirectories;
58 }
59
60 public Set<Artifact> getDependencies() {
61 return dependencies;
62 }
63
64 public void setDependencies(Set<Artifact> dependencies) {
65 this.dependencies = dependencies;
66 }
67
68 public List<String> getIncludePatterns() {
69 return includePatterns;
70 }
71
72 public void setIncludePatterns(List<String> includePatterns) {
73 this.includePatterns = includePatterns;
74 }
75
76 public List<File> getSourceDirectories() {
77 return sourceDirectories;
78 }
79
80 public void setSourceDirectories(List<File> sourceDirectories) {
81 this.sourceDirectories = sourceDirectories;
82 }
83
84 public MavenProject getProject() {
85 return project;
86 }
87
88 public void setProject(MavenProject project) {
89 this.project = project;
90 }
91
92 public String getMavenApiVersion() {
93 return mavenApiVersion;
94 }
95
96 public void setMavenApiVersion(String mavenApiVersion) {
97 this.mavenApiVersion = mavenApiVersion;
98 }
99 }