|
@@ -13,7 +13,6 @@
|
|
|
*/
|
|
|
package org.apache.hadoop.maven.plugin.resourcegz;
|
|
|
|
|
|
-import org.apache.hadoop.thirdparty.com.google.common.collect.Lists;
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
import org.apache.maven.plugin.AbstractMojo;
|
|
|
import org.apache.maven.plugin.MojoExecutionException;
|
|
@@ -27,6 +26,7 @@ import java.io.FileOutputStream;
|
|
|
import java.io.IOException;
|
|
|
import java.nio.file.Files;
|
|
|
import java.nio.file.Path;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import java.util.function.Consumer;
|
|
|
import java.util.regex.Matcher;
|
|
@@ -65,7 +65,7 @@ public class ResourceGzMojo extends AbstractMojo {
|
|
|
try {
|
|
|
Path inputDir = new File(inputDirectory).toPath();
|
|
|
File outputDir = new File(outputDirectory);
|
|
|
- List<String> exts = Lists.newArrayList(extensions.split(","));
|
|
|
+ List<String> exts = Arrays.asList(extensions.split(","));
|
|
|
exts.replaceAll(String::trim);
|
|
|
GZConsumer cons = new GZConsumer(inputDir.toFile(), outputDir);
|
|
|
Files.walk(inputDir).filter(path -> {
|