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