mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
new tests for artifacts compiler
This commit is contained in:
+3
-1
@@ -19,7 +19,9 @@ public class ArtifactsProcessingItemsBuilderContext extends ProcessingItemsBuild
|
||||
}
|
||||
|
||||
public void addDestination(VirtualFile sourceFile, DestinationInfo destinationInfo) {
|
||||
getOrCreateProcessingItem(sourceFile).addDestination(destinationInfo, myCollectingEnabledItems);
|
||||
if (checkOutputPath(destinationInfo.getOutputPath(), sourceFile)) {
|
||||
getOrCreateProcessingItem(sourceFile).addDestination(destinationInfo, myCollectingEnabledItems);
|
||||
}
|
||||
}
|
||||
|
||||
protected ArtifactPackagingProcessingItem createProcessingItem(VirtualFile sourceFile) {
|
||||
|
||||
@@ -116,7 +116,7 @@ public class ZipUtil {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void extract(File file, File outputDir, FilenameFilter filenameFilter) throws IOException {
|
||||
public static void extract(@NotNull File file, @NotNull File outputDir, @Nullable FilenameFilter filenameFilter) throws IOException {
|
||||
final ZipFile zipFile = new ZipFile(file);
|
||||
try {
|
||||
extract(zipFile, outputDir, filenameFilter);
|
||||
@@ -126,9 +126,9 @@ public class ZipUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static void extract(final ZipFile zipFile,
|
||||
File outputDir,
|
||||
FilenameFilter filenameFilter) throws IOException {
|
||||
public static void extract(final @NotNull ZipFile zipFile,
|
||||
@NotNull File outputDir,
|
||||
@Nullable FilenameFilter filenameFilter) throws IOException {
|
||||
final Enumeration entries = zipFile.entries();
|
||||
while (entries.hasMoreElements()) {
|
||||
ZipEntry entry = (ZipEntry)entries.nextElement();
|
||||
|
||||
Reference in New Issue
Block a user