Repository: camel Updated Branches: refs/heads/master 82257c770 -> 77678ceec
CAMEL-11016 - add option allowEmptyDirectory for TarDataFormat to model for XML DSL Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0ec59aba Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0ec59aba Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0ec59aba Branch: refs/heads/master Commit: 0ec59aba7e2dd10c2289daf9942d76ce51e04736 Parents: db24f3f Author: onders86 <ondersez...@gmail.com> Authored: Sun Mar 19 14:00:57 2017 +0300 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Mar 22 21:23:44 2017 +0100 ---------------------------------------------------------------------- .../camel/model/dataformat/TarFileDataFormat.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/0ec59aba/camel-core/src/main/java/org/apache/camel/model/dataformat/TarFileDataFormat.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/model/dataformat/TarFileDataFormat.java b/camel-core/src/main/java/org/apache/camel/model/dataformat/TarFileDataFormat.java index 7257bc0..ec17c4b 100644 --- a/camel-core/src/main/java/org/apache/camel/model/dataformat/TarFileDataFormat.java +++ b/camel-core/src/main/java/org/apache/camel/model/dataformat/TarFileDataFormat.java @@ -35,6 +35,8 @@ import org.apache.camel.spi.Metadata; public class TarFileDataFormat extends DataFormatDefinition { @XmlAttribute private Boolean usingIterator; + @XmlAttribute + private Boolean allowEmptyDirectory; public TarFileDataFormat() { super("tarfile"); @@ -50,6 +52,10 @@ public class TarFileDataFormat extends DataFormatDefinition { public Boolean getUsingIterator() { return usingIterator; } + + public Boolean getAllowEmptyDirectory() { + return allowEmptyDirectory; + } /** * If the tar file has more then one entry, the setting this option to true, allows to work with the splitter EIP, @@ -58,4 +64,12 @@ public class TarFileDataFormat extends DataFormatDefinition { public void setUsingIterator(Boolean usingIterator) { this.usingIterator = usingIterator; } + + /** + * If the tar file has more then one entry, setting this option to true, allows to get the iterator + * even if the directory is empty + */ + public void setAllowEmptyDirectory(Boolean allowEmptyDirectory) { + this.allowEmptyDirectory = allowEmptyDirectory; + } }