1 package org.codehaus.mojo.appassembler.daemon;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 import java.io.File;
28
29 import org.apache.maven.artifact.repository.ArtifactRepository;
30 import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
31 import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
32 import org.apache.maven.project.MavenProject;
33 import org.codehaus.mojo.appassembler.model.Daemon;
34
35
36
37
38
39 public class DaemonGenerationRequest
40 {
41 private String platform;
42
43 private File stubDescriptor;
44
45
46 private Daemon stubDaemon;
47
48 private Daemon daemon;
49
50 private File outputDirectory;
51
52 private String binFolder;
53
54 private MavenProject mavenProject;
55
56 private ArtifactRepository localRepository;
57
58 private String outputFileNameMapping;
59
60 private ArtifactRepositoryLayout repositoryLayout = new DefaultRepositoryLayout();
61
62
63
64
65 public DaemonGenerationRequest()
66 {
67 }
68
69
70
71
72
73
74
75
76
77
78 public DaemonGenerationRequest( Daemon daemon, MavenProject project, ArtifactRepository localRepository,
79 File outputDir, String binFolder )
80 {
81 this.daemon = daemon;
82
83 this.mavenProject = project;
84
85 this.localRepository = localRepository;
86
87 this.outputDirectory = outputDir;
88
89 this.binFolder = binFolder;
90 }
91
92
93
94
95
96
97 public String getPlatform()
98 {
99 return platform;
100 }
101
102
103
104
105 public void setPlatform( String platform )
106 {
107 this.platform = platform;
108 }
109
110
111
112
113
114
115 public File getStubDescriptor()
116 {
117 return stubDescriptor;
118 }
119
120
121
122
123
124
125 public void setStubDescriptor( File stubDescriptor )
126 {
127 this.stubDescriptor = stubDescriptor;
128 }
129
130
131
132
133
134
135 public Daemon getStubDaemon()
136 {
137 return stubDaemon;
138 }
139
140
141
142
143
144
145 public void setStubDaemon( Daemon stubDaemon )
146 {
147 this.stubDaemon = stubDaemon;
148 }
149
150
151
152
153
154
155 public Daemon getDaemon()
156 {
157 return daemon;
158 }
159
160
161
162
163
164
165 public void setDaemon( Daemon daemon )
166 {
167 this.daemon = daemon;
168 }
169
170
171
172
173
174
175 public File getOutputDirectory()
176 {
177 return outputDirectory;
178 }
179
180
181
182
183
184
185 public void setOutputDirectory( File outputDirectory )
186 {
187 this.outputDirectory = outputDirectory;
188 }
189
190
191
192
193
194
195 public MavenProject getMavenProject()
196 {
197 return mavenProject;
198 }
199
200
201
202
203
204
205 public void setMavenProject( MavenProject mavenProject )
206 {
207 this.mavenProject = mavenProject;
208 }
209
210
211
212
213
214
215 public ArtifactRepository getLocalRepository()
216 {
217 return localRepository;
218 }
219
220
221
222
223 public void setLocalRepository( ArtifactRepository localRepository )
224 {
225 this.localRepository = localRepository;
226 }
227
228
229
230
231 public ArtifactRepositoryLayout getRepositoryLayout()
232 {
233 return repositoryLayout;
234 }
235
236
237
238
239
240
241 public void setRepositoryLayout( ArtifactRepositoryLayout repositoryLayout )
242 {
243 this.repositoryLayout = repositoryLayout;
244 }
245
246
247
248
249
250
251 public String getBinFolder()
252 {
253 return binFolder;
254 }
255
256
257
258
259
260
261 public void setBinFolder( String binFolder )
262 {
263 this.binFolder = binFolder;
264 }
265
266
267
268
269
270
271 public String getOutputFileNameMapping()
272 {
273 return outputFileNameMapping;
274 }
275
276
277
278
279
280
281 public void setOutputFileNameMapping( String outputFileNameMapping )
282 {
283 this.outputFileNameMapping = outputFileNameMapping;
284 }
285 }