Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2015-12-18 02:44:15 +0000
committerDani Megert2016-01-08 13:59:27 +0000
commitea05fde9ea49686908385f35eaf4e657a594bcc3 (patch)
tree166fb4f4de81e316750c6f55be3b8deed15116b1
parent83a2111ae1c5fe7b481a9c6412d7bc96a8938325 (diff)
downloadeclipse.pde.build-ea05fde9ea49686908385f35eaf4e657a594bcc3.tar.gz
eclipse.pde.build-ea05fde9ea49686908385f35eaf4e657a594bcc3.tar.xz
eclipse.pde.build-ea05fde9ea49686908385f35eaf4e657a594bcc3.zip
getIncludeFiles() of FileSet does not return directories, only files, therefore its is not possible to include them, unless explicitly added Change-Id: Id356d91956e4ebd53087c787c117311c18d18071 Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
-rw-r--r--org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/publisher/GatherFeatureTask.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/publisher/GatherFeatureTask.java b/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/publisher/GatherFeatureTask.java
index 373da055..7c65c3e9 100644
--- a/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/publisher/GatherFeatureTask.java
+++ b/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/publisher/GatherFeatureTask.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2013 IBM Corporation and others.
+ * Copyright (c) 2008, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,12 +7,14 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Alena Laskavaia - Bug 432399 - Export feature not exporting empty folders
*******************************************************************************/
package org.eclipse.pde.internal.build.publisher;
import java.io.File;
import java.util.*;
import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.types.FileSet;
import org.apache.tools.ant.types.PatternSet.NameEntry;
import org.apache.tools.ant.types.selectors.FilenameSelector;
@@ -113,7 +115,9 @@ public class GatherFeatureTask extends AbstractPublisherTask {
}
FileSet fileSet = createFileSet(buildResultFolder, include, exclude);
- computer.addFiles(buildResultFolder, fileSet.getDirectoryScanner().getIncludedFiles());
+ DirectoryScanner directoryScanner = fileSet.getDirectoryScanner();
+ computer.addFiles(buildResultFolder, directoryScanner.getIncludedFiles());
+ computer.addFiles(buildResultFolder, directoryScanner.getIncludedDirectories());
return computer;
}

Back to the top