2323 */
2424// TODO Is this general enough to be in Plexus Archiver?
2525public class ManifestConfiguration {
26+
2627 /**
2728 * The simple layout.
2829 */
@@ -34,7 +35,7 @@ public class ManifestConfiguration {
3435 public static final String CLASSPATH_LAYOUT_TYPE_REPOSITORY = "repository" ;
3536
3637 /**
37- * custom layout type.
38+ * Custom layout type.
3839 */
3940 public static final String CLASSPATH_LAYOUT_TYPE_CUSTOM = "custom" ;
4041
@@ -97,7 +98,7 @@ public String getMainClass() {
9798 /**
9899 * <p>Getter for the field <code>packageName</code>.</p>
99100 *
100- * @return the package name.
101+ * @return the package name
101102 */
102103 public String getPackageName () {
103104 return packageName ;
@@ -106,7 +107,7 @@ public String getPackageName() {
106107 /**
107108 * <p>isAddClasspath.</p>
108109 *
109- * @return if addClasspath true or false.
110+ * @return if addClasspath true or false
110111 */
111112 public boolean isAddClasspath () {
112113 return addClasspath ;
@@ -160,7 +161,7 @@ public boolean isAddExtensions() {
160161 /**
161162 * <p>Setter for the field <code>addClasspath</code>.</p>
162163 *
163- * @param addClasspath turn on addClasspath or off.
164+ * @param addClasspath turn on addClasspath or off
164165 */
165166 public void setAddClasspath (boolean addClasspath ) {
166167 this .addClasspath = addClasspath ;
@@ -169,7 +170,7 @@ public void setAddClasspath(boolean addClasspath) {
169170 /**
170171 * <p>Setter for the field <code>addDefaultEntries</code>.</p>
171172 *
172- * @param addDefaultEntries add default entries true/false.
173+ * @param addDefaultEntries add default entries true/false
173174 */
174175 public void setAddDefaultEntries (boolean addDefaultEntries ) {
175176 this .addDefaultEntries = addDefaultEntries ;
@@ -178,7 +179,7 @@ public void setAddDefaultEntries(boolean addDefaultEntries) {
178179 /**
179180 * <p>Setter for the field <code>addBuildEnvironmentEntries</code>.</p>
180181 *
181- * @param addBuildEnvironmentEntries add build environment information true/false.
182+ * @param addBuildEnvironmentEntries add build environment information true/false
182183 */
183184 public void setAddBuildEnvironmentEntries (boolean addBuildEnvironmentEntries ) {
184185 this .addBuildEnvironmentEntries = addBuildEnvironmentEntries ;
@@ -187,7 +188,7 @@ public void setAddBuildEnvironmentEntries(boolean addBuildEnvironmentEntries) {
187188 /**
188189 * <p>Setter for the field <code>addDefaultImplementationEntries</code>.</p>
189190 *
190- * @param addDefaultImplementationEntries true to add default implementations false otherwise.
191+ * @param addDefaultImplementationEntries true to add default implementations false otherwise
191192 */
192193 public void setAddDefaultImplementationEntries (boolean addDefaultImplementationEntries ) {
193194 this .addDefaultImplementationEntries = addDefaultImplementationEntries ;
@@ -196,7 +197,7 @@ public void setAddDefaultImplementationEntries(boolean addDefaultImplementationE
196197 /**
197198 * <p>Setter for the field <code>addDefaultSpecificationEntries</code>.</p>
198199 *
199- * @param addDefaultSpecificationEntries add default specifications true/false.
200+ * @param addDefaultSpecificationEntries add default specifications true/false
200201 */
201202 public void setAddDefaultSpecificationEntries (boolean addDefaultSpecificationEntries ) {
202203 this .addDefaultSpecificationEntries = addDefaultSpecificationEntries ;
@@ -205,7 +206,7 @@ public void setAddDefaultSpecificationEntries(boolean addDefaultSpecificationEnt
205206 /**
206207 * <p>Setter for the field <code>addExtensions</code>.</p>
207208 *
208- * @param addExtensions true to add extensions false otherwise.
209+ * @param addExtensions true to add extensions false otherwise
209210 */
210211 public void setAddExtensions (boolean addExtensions ) {
211212 this .addExtensions = addExtensions ;
@@ -214,7 +215,7 @@ public void setAddExtensions(boolean addExtensions) {
214215 /**
215216 * <p>Setter for the field <code>classpathPrefix</code>.</p>
216217 *
217- * @param classpathPrefix The prefix.
218+ * @param classpathPrefix the prefix
218219 */
219220 public void setClasspathPrefix (String classpathPrefix ) {
220221 this .classpathPrefix = classpathPrefix ;
@@ -223,7 +224,7 @@ public void setClasspathPrefix(String classpathPrefix) {
223224 /**
224225 * <p>Setter for the field <code>mainClass</code>.</p>
225226 *
226- * @param mainClass The main class.
227+ * @param mainClass the main class
227228 */
228229 public void setMainClass (String mainClass ) {
229230 this .mainClass = mainClass ;
@@ -232,7 +233,7 @@ public void setMainClass(String mainClass) {
232233 /**
233234 * <p>Setter for the field <code>packageName</code>.</p>
234235 *
235- * @param packageName The package name.
236+ * @param packageName the package name
236237 */
237238 public void setPackageName (String packageName ) {
238239 this .packageName = packageName ;
@@ -241,15 +242,13 @@ public void setPackageName(String packageName) {
241242 /**
242243 * <p>Getter for the field <code>classpathPrefix</code>.</p>
243244 *
244- * @return The classpath prefix.
245+ * @return the classpath prefix
245246 */
246247 public String getClasspathPrefix () {
247248 String cpp = classpathPrefix .replaceAll ("\\ \\ " , "/" );
248-
249249 if (cpp .length () != 0 && !cpp .endsWith ("/" )) {
250250 cpp += "/" ;
251251 }
252-
253252 return cpp ;
254253 }
255254
@@ -261,7 +260,7 @@ public String getClasspathPrefix() {
261260 * <b>NOTE:</b> If you specify a type of 'custom' you MUST set
262261 * {@link ManifestConfiguration#setCustomClasspathLayout(String)}.
263262 *
264- * @return The classpath layout type.
263+ * @return the classpath layout type
265264 */
266265 public String getClasspathLayoutType () {
267266 return classpathLayoutType ;
@@ -275,7 +274,7 @@ public String getClasspathLayoutType() {
275274 * <b>NOTE:</b> If you specify a type of 'custom' you MUST set
276275 * {@link ManifestConfiguration#setCustomClasspathLayout(String)}.
277276 *
278- * @param classpathLayoutType The classpath layout type.
277+ * @param classpathLayoutType the classpath layout type
279278 */
280279 public void setClasspathLayoutType (String classpathLayoutType ) {
281280 this .classpathLayoutType = classpathLayoutType ;
@@ -293,7 +292,7 @@ public void setClasspathLayoutType(String classpathLayoutType) {
293292 * <br>
294293 * <b>NOTE:</b> If you specify a layout type of 'custom' you MUST set this layout expression.
295294 *
296- * @return The custom classpath layout.
295+ * @return the custom classpath layout
297296 */
298297 public String getCustomClasspathLayout () {
299298 return customClasspathLayout ;
@@ -319,7 +318,7 @@ public String getCustomClasspathLayout() {
319318 * </ol>
320319 * how such an expression looks like.
321320 *
322- * @param customClasspathLayout The custom classpath layout.
321+ * @param customClasspathLayout the custom classpath layout
323322 */
324323 public void setCustomClasspathLayout (String customClasspathLayout ) {
325324 this .customClasspathLayout = customClasspathLayout ;
@@ -332,7 +331,7 @@ public void setCustomClasspathLayout(String customClasspathLayout) {
332331 * <b>NOTE:</b> If the snapshot was installed locally, this flag will not have an effect on
333332 * that artifact's inclusion, since it will have the same version either way (i.e. -SNAPSHOT naming).
334333 *
335- * @return The state of {@link #useUniqueVersions}
334+ * @return the state of {@link #useUniqueVersions}
336335 */
337336 public boolean isUseUniqueVersions () {
338337 return useUniqueVersions ;
@@ -345,7 +344,7 @@ public boolean isUseUniqueVersions() {
345344 * <b>NOTE:</b> If the snapshot was installed locally, this flag will not have an effect on that artifact's
346345 * inclusion, since it will have the same version either way (i.e. -SNAPSHOT naming).
347346 *
348- * @param useUniqueVersions true to use unique versions or not.
347+ * @param useUniqueVersions true to use unique versions or not
349348 */
350349 public void setUseUniqueVersions (boolean useUniqueVersions ) {
351350 this .useUniqueVersions = useUniqueVersions ;
0 commit comments