new tests for artifacts compiler

This commit is contained in:
Nikolay Chashnikov
2009-09-23 15:40:50 +04:00
parent 423f6986b7
commit 5ea0084b45
2 changed files with 7 additions and 5 deletions
@@ -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();