From bd877a4dc6960ccf094b7374e0ae53f31dde1b93 Mon Sep 17 00:00:00 2001 From: shuyangzhou Date: Fri, 16 Apr 2021 10:17:09 -0700 Subject: [PATCH] We are not doing the lib-patch anymore --- .../netbeansproject/container/Module.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/com/liferay/netbeansproject/container/Module.java b/src/com/liferay/netbeansproject/container/Module.java index 1cd08f59..2c65d2a3 100644 --- a/src/com/liferay/netbeansproject/container/Module.java +++ b/src/com/liferay/netbeansproject/container/Module.java @@ -21,7 +21,6 @@ import java.io.IOException; import java.io.Writer; -import java.nio.file.DirectoryStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -67,26 +66,6 @@ public static Module createModule( jarDependencies = new HashSet<>(); } - Path moduleLibPath = modulePath.resolve("lib-patch"); - - if (Files.exists(moduleLibPath)) { - try (DirectoryStream directoryStream = - Files.newDirectoryStream(moduleLibPath, "*-sources.jar")) { - - for (Path sourcePath : directoryStream) { - Dependency dependency = new Dependency( - Paths.get( - StringUtil.replace( - sourcePath.toString(), "-sources.jar", ".jar")), - sourcePath, false); - - if (jarDependencies.remove(dependency)) { - jarDependencies.add(dependency); - } - } - } - } - String checksum = null; Path gradleFilePath = modulePath.resolve("build.gradle");