desruisseaux commented on code in PR #508:
URL: https://github.com/apache/maven-jar-plugin/pull/508#discussion_r3923464184


##########
src/main/java/org/apache/maven/plugins/jar/FileCollector.java:
##########
@@ -0,0 +1,541 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.maven.plugins.jar;
+
+import java.io.IOException;
+import java.nio.file.FileVisitResult;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.PathMatcher;
+import java.nio.file.SimpleFileVisitor;
+import java.nio.file.attribute.BasicFileAttributes;
+import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.Deque;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.maven.api.annotations.Nonnull;
+import org.apache.maven.api.annotations.Nullable;
+import org.apache.maven.api.services.PathMatcherFactory;
+
+/**
+ * Dispatch the files from the output directory into the <abbr>JAR</abbr> 
files to create.
+ * Instead of just archiving as-is the content of the output directory, this 
class separates
+ * the following subdirectories to the options listed below:
+ *
+ * <ul>
+ *   <li>The {@code META-INF/MANIFEST.MF} file will be given to the {@code 
--manifest} option.</li>
+ *   <li>Files in the following directories will be given to the {@code 
--release} option:
+ *     <ul>
+ *       <li>{@code META-INF/versions/}</li>
+ *       <li>{@code META-INF/versions-modular/<module>/}</li>
+ *       <li>{@code <module>/META-INF/versions/}</li>
+ *     </ul>
+ *   </li>
+ * </ul>
+ *
+ * The reason for using the options is that they allow the {@code jar} tool to 
perform additional verifications.

Review Comment:
   Modified the sentence for naming explicitly the options.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to