diff options
| author | Alena Laskavaia | 2015-12-18 02:44:15 +0000 |
|---|---|---|
| committer | Dani Megert | 2016-01-08 13:59:27 +0000 |
| commit | ea05fde9ea49686908385f35eaf4e657a594bcc3 (patch) | |
| tree | 166fb4f4de81e316750c6f55be3b8deed15116b1 | |
| parent | 83a2111ae1c5fe7b481a9c6412d7bc96a8938325 (diff) | |
| download | eclipse.pde.build-ea05fde9ea49686908385f35eaf4e657a594bcc3.tar.gz eclipse.pde.build-ea05fde9ea49686908385f35eaf4e657a594bcc3.tar.xz eclipse.pde.build-ea05fde9ea49686908385f35eaf4e657a594bcc3.zip | |
Bug 432399 - [Import/Export] Export feature not exporting empty foldersI20160202-1000I20160202-0800I20160128-2000I20160127-2000I20160127-0800I20160126-2000I20160126-0800I20160125-2000I20160125-0800I20160125-0400I20160124-2000I20160119-0800I20160112-1800I20160112-0800
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.java | 8 |
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; } |
