23
23
*/
24
24
// TODO Is this general enough to be in Plexus Archiver?
25
25
public class ManifestConfiguration {
26
+
26
27
/**
27
28
* The simple layout.
28
29
*/
@@ -34,7 +35,7 @@ public class ManifestConfiguration {
34
35
public static final String CLASSPATH_LAYOUT_TYPE_REPOSITORY = "repository" ;
35
36
36
37
/**
37
- * custom layout type.
38
+ * Custom layout type.
38
39
*/
39
40
public static final String CLASSPATH_LAYOUT_TYPE_CUSTOM = "custom" ;
40
41
@@ -97,7 +98,7 @@ public String getMainClass() {
97
98
/**
98
99
* <p>Getter for the field <code>packageName</code>.</p>
99
100
*
100
- * @return the package name.
101
+ * @return the package name
101
102
*/
102
103
public String getPackageName () {
103
104
return packageName ;
@@ -106,7 +107,7 @@ public String getPackageName() {
106
107
/**
107
108
* <p>isAddClasspath.</p>
108
109
*
109
- * @return if addClasspath true or false.
110
+ * @return if addClasspath true or false
110
111
*/
111
112
public boolean isAddClasspath () {
112
113
return addClasspath ;
@@ -160,7 +161,7 @@ public boolean isAddExtensions() {
160
161
/**
161
162
* <p>Setter for the field <code>addClasspath</code>.</p>
162
163
*
163
- * @param addClasspath turn on addClasspath or off.
164
+ * @param addClasspath turn on addClasspath or off
164
165
*/
165
166
public void setAddClasspath (boolean addClasspath ) {
166
167
this .addClasspath = addClasspath ;
@@ -169,7 +170,7 @@ public void setAddClasspath(boolean addClasspath) {
169
170
/**
170
171
* <p>Setter for the field <code>addDefaultEntries</code>.</p>
171
172
*
172
- * @param addDefaultEntries add default entries true/false.
173
+ * @param addDefaultEntries add default entries true/false
173
174
*/
174
175
public void setAddDefaultEntries (boolean addDefaultEntries ) {
175
176
this .addDefaultEntries = addDefaultEntries ;
@@ -178,7 +179,7 @@ public void setAddDefaultEntries(boolean addDefaultEntries) {
178
179
/**
179
180
* <p>Setter for the field <code>addBuildEnvironmentEntries</code>.</p>
180
181
*
181
- * @param addBuildEnvironmentEntries add build environment information true/false.
182
+ * @param addBuildEnvironmentEntries add build environment information true/false
182
183
*/
183
184
public void setAddBuildEnvironmentEntries (boolean addBuildEnvironmentEntries ) {
184
185
this .addBuildEnvironmentEntries = addBuildEnvironmentEntries ;
@@ -187,7 +188,7 @@ public void setAddBuildEnvironmentEntries(boolean addBuildEnvironmentEntries) {
187
188
/**
188
189
* <p>Setter for the field <code>addDefaultImplementationEntries</code>.</p>
189
190
*
190
- * @param addDefaultImplementationEntries true to add default implementations false otherwise.
191
+ * @param addDefaultImplementationEntries true to add default implementations false otherwise
191
192
*/
192
193
public void setAddDefaultImplementationEntries (boolean addDefaultImplementationEntries ) {
193
194
this .addDefaultImplementationEntries = addDefaultImplementationEntries ;
@@ -196,7 +197,7 @@ public void setAddDefaultImplementationEntries(boolean addDefaultImplementationE
196
197
/**
197
198
* <p>Setter for the field <code>addDefaultSpecificationEntries</code>.</p>
198
199
*
199
- * @param addDefaultSpecificationEntries add default specifications true/false.
200
+ * @param addDefaultSpecificationEntries add default specifications true/false
200
201
*/
201
202
public void setAddDefaultSpecificationEntries (boolean addDefaultSpecificationEntries ) {
202
203
this .addDefaultSpecificationEntries = addDefaultSpecificationEntries ;
@@ -205,7 +206,7 @@ public void setAddDefaultSpecificationEntries(boolean addDefaultSpecificationEnt
205
206
/**
206
207
* <p>Setter for the field <code>addExtensions</code>.</p>
207
208
*
208
- * @param addExtensions true to add extensions false otherwise.
209
+ * @param addExtensions true to add extensions false otherwise
209
210
*/
210
211
public void setAddExtensions (boolean addExtensions ) {
211
212
this .addExtensions = addExtensions ;
@@ -214,7 +215,7 @@ public void setAddExtensions(boolean addExtensions) {
214
215
/**
215
216
* <p>Setter for the field <code>classpathPrefix</code>.</p>
216
217
*
217
- * @param classpathPrefix The prefix.
218
+ * @param classpathPrefix the prefix
218
219
*/
219
220
public void setClasspathPrefix (String classpathPrefix ) {
220
221
this .classpathPrefix = classpathPrefix ;
@@ -223,7 +224,7 @@ public void setClasspathPrefix(String classpathPrefix) {
223
224
/**
224
225
* <p>Setter for the field <code>mainClass</code>.</p>
225
226
*
226
- * @param mainClass The main class.
227
+ * @param mainClass the main class
227
228
*/
228
229
public void setMainClass (String mainClass ) {
229
230
this .mainClass = mainClass ;
@@ -232,7 +233,7 @@ public void setMainClass(String mainClass) {
232
233
/**
233
234
* <p>Setter for the field <code>packageName</code>.</p>
234
235
*
235
- * @param packageName The package name.
236
+ * @param packageName the package name
236
237
*/
237
238
public void setPackageName (String packageName ) {
238
239
this .packageName = packageName ;
@@ -241,15 +242,13 @@ public void setPackageName(String packageName) {
241
242
/**
242
243
* <p>Getter for the field <code>classpathPrefix</code>.</p>
243
244
*
244
- * @return The classpath prefix.
245
+ * @return the classpath prefix
245
246
*/
246
247
public String getClasspathPrefix () {
247
248
String cpp = classpathPrefix .replaceAll ("\\ \\ " , "/" );
248
-
249
249
if (cpp .length () != 0 && !cpp .endsWith ("/" )) {
250
250
cpp += "/" ;
251
251
}
252
-
253
252
return cpp ;
254
253
}
255
254
@@ -261,7 +260,7 @@ public String getClasspathPrefix() {
261
260
* <b>NOTE:</b> If you specify a type of 'custom' you MUST set
262
261
* {@link ManifestConfiguration#setCustomClasspathLayout(String)}.
263
262
*
264
- * @return The classpath layout type.
263
+ * @return the classpath layout type
265
264
*/
266
265
public String getClasspathLayoutType () {
267
266
return classpathLayoutType ;
@@ -275,7 +274,7 @@ public String getClasspathLayoutType() {
275
274
* <b>NOTE:</b> If you specify a type of 'custom' you MUST set
276
275
* {@link ManifestConfiguration#setCustomClasspathLayout(String)}.
277
276
*
278
- * @param classpathLayoutType The classpath layout type.
277
+ * @param classpathLayoutType the classpath layout type
279
278
*/
280
279
public void setClasspathLayoutType (String classpathLayoutType ) {
281
280
this .classpathLayoutType = classpathLayoutType ;
@@ -293,7 +292,7 @@ public void setClasspathLayoutType(String classpathLayoutType) {
293
292
* <br>
294
293
* <b>NOTE:</b> If you specify a layout type of 'custom' you MUST set this layout expression.
295
294
*
296
- * @return The custom classpath layout.
295
+ * @return the custom classpath layout
297
296
*/
298
297
public String getCustomClasspathLayout () {
299
298
return customClasspathLayout ;
@@ -319,7 +318,7 @@ public String getCustomClasspathLayout() {
319
318
* </ol>
320
319
* how such an expression looks like.
321
320
*
322
- * @param customClasspathLayout The custom classpath layout.
321
+ * @param customClasspathLayout the custom classpath layout
323
322
*/
324
323
public void setCustomClasspathLayout (String customClasspathLayout ) {
325
324
this .customClasspathLayout = customClasspathLayout ;
@@ -332,7 +331,7 @@ public void setCustomClasspathLayout(String customClasspathLayout) {
332
331
* <b>NOTE:</b> If the snapshot was installed locally, this flag will not have an effect on
333
332
* that artifact's inclusion, since it will have the same version either way (i.e. -SNAPSHOT naming).
334
333
*
335
- * @return The state of {@link #useUniqueVersions}
334
+ * @return the state of {@link #useUniqueVersions}
336
335
*/
337
336
public boolean isUseUniqueVersions () {
338
337
return useUniqueVersions ;
@@ -345,7 +344,7 @@ public boolean isUseUniqueVersions() {
345
344
* <b>NOTE:</b> If the snapshot was installed locally, this flag will not have an effect on that artifact's
346
345
* inclusion, since it will have the same version either way (i.e. -SNAPSHOT naming).
347
346
*
348
- * @param useUniqueVersions true to use unique versions or not.
347
+ * @param useUniqueVersions true to use unique versions or not
349
348
*/
350
349
public void setUseUniqueVersions (boolean useUniqueVersions ) {
351
350
this .useUniqueVersions = useUniqueVersions ;
0 commit comments