Skip to content

Commit

Permalink
We are not doing the lib-patch anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyangzhou committed Apr 16, 2021
1 parent cae6579 commit bd877a4
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/com/liferay/netbeansproject/container/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -67,26 +66,6 @@ public static Module createModule(
jarDependencies = new HashSet<>();
}

Path moduleLibPath = modulePath.resolve("lib-patch");

if (Files.exists(moduleLibPath)) {
try (DirectoryStream<Path> 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");
Expand Down

0 comments on commit bd877a4

Please sign in to comment.