This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new cc91ccd Fixed CS cc91ccd is described below commit cc91ccd37b2cd4c62f61882a73e92654a5ce8268 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Aug 7 09:07:06 2019 +0200 Fixed CS --- components/camel-file/src/main/docs/file-component.adoc | 3 +-- .../java/org/apache/camel/component/file/GenericFileEndpoint.java | 2 +- .../camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java | 5 +++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/camel-file/src/main/docs/file-component.adoc b/components/camel-file/src/main/docs/file-component.adoc index d6536e6..56962cc 100644 --- a/components/camel-file/src/main/docs/file-component.adoc +++ b/components/camel-file/src/main/docs/file-component.adoc @@ -114,8 +114,7 @@ with the following path and query parameters: | *processStrategy* (consumer) | A pluggable org.apache.camel.component.file.GenericFileProcessStrategy allowing you to implement your own readLock option or similar. Can also be used when special conditions must be met before a file can be consumed, such as a special ready file exists. If this option is set then the readLock option does not apply. | | GenericFileProcess Strategy | *startingDirectoryMustExist* (consumer) | Whether the starting directory must exist. Mind that the autoCreate option is default enabled, which means the starting directory is normally auto created if it doesn't exist. You can disable autoCreate and enable this to ensure the starting directory must exist. Will thrown an exception if the directory doesn't exist. | false | boolean | *startingDirectoryMustHave Access* (consumer) | Whether the starting directory has access permissions. Mind that the startingDirectoryMustExist parameter must be set to true in order to verify that the directory exists. Will thrown an exception if the directory doesn't have read and write permissions. | false | boolean -| *appendChars* (producer) | Used to append characters (text) after writing files. This can for example be used to add new lines or other separators when writing and appending to existing files. To specify new-line ( - or ) or tab ( ) characters then escape with an extra slash, eg \n | | String +| *appendChars* (producer) | Used to append characters (text) after writing files. This can for example be used to add new lines or other separators when writing and appending to existing files. To specify new-line (slash-n or slash-r) or tab (slash-t) characters then escape with an extra slash, eg slash-slash-n | | String | *fileExist* (producer) | What to do if a file already exists with the same name. Override, which is the default, replaces the existing file. Append - adds content to the existing file. Fail - throws a GenericFileOperationException, indicating that there is already an existing file. Ignore - silently ignores the problem and does not override the existing file, but assumes everything is okay. Move - option requires to use the moveExisting option to be configured as well. The option eager [...] | *flatten* (producer) | Flatten is used to flatten the file name path to strip any leading paths, so it's just the file name. This allows you to consume recursively into sub-directories, but when you eg write the files to another directory they will be written in a single directory. Setting this to true on the producer enforces that any file name in CamelFileName header will be stripped for any leading paths. | false | boolean | *jailStartingDirectory* (producer) | Used for jailing (restricting) writing files to the starting directory (and sub) only. This is enabled by default to not allow Camel to write files to outside directories (to be more secured out of the box). You can turn this off to allow writing files to directories outside the starting directory, such as parent or root folders. | true | boolean diff --git a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java index 3f6a020..d41ed29 100644 --- a/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java +++ b/components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java @@ -1249,7 +1249,7 @@ public abstract class GenericFileEndpoint<T> extends ScheduledPollEndpoint imple * Used to append characters (text) after writing files. This can for example be used to add new lines or other * separators when writing and appending to existing files. * <p/> - * To specify new-line (\n or \r) or tab (\t) characters then escape with an extra slash, eg \\n + * To specify new-line (slash-n or slash-r) or tab (slash-t) characters then escape with an extra slash, eg slash-slash-n */ public void setAppendChars(String appendChars) { StringBuilder sb = new StringBuilder(); diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java index 1eaec3c..7d24a7b 100644 --- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FileEndpointBuilderFactory.java @@ -2348,8 +2348,9 @@ public interface FileEndpointBuilderFactory { /** * Used to append characters (text) after writing files. This can for * example be used to add new lines or other separators when writing and - * appending to existing files. To specify new-line ( - * or ) or tab ( ) characters then escape with an extra slash, eg \n. + * appending to existing files. To specify new-line (slash-n or slash-r) + * or tab (slash-t) characters then escape with an extra slash, eg + * slash-slash-n. * * The option is a: <code>java.lang.String</code> type. *