[
https://issues.apache.org/jira/browse/NIFI-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15651426#comment-15651426
]
ASF GitHub Bot commented on NIFI-3008:
--------------------------------------
Github user olegz commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1190#discussion_r87232686
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestTailFile.java
---
@@ -620,6 +620,27 @@ public void testMultipleFiles() throws IOException,
InterruptedException {
runner.getFlowFilesForRelationship(TailFile.REL_SUCCESS).get(4).assertContentEquals("1\n");
}
+ @Test
+ public void testMultipleFilesWithBasedirAndFilenameEL() throws
IOException, InterruptedException {
+ runner.setVariable("vrBaseDirectory", "target");
+ runner.setProperty(TailFile.BASE_DIRECTORY, "${vrBaseDirectory}");
+ runner.setProperty(TailFile.MODE, TailFile.MODE_MULTIFILE);
+ runner.setVariable("vrFilename", "(testDir/)?log(ging)?.txt");
+ runner.setProperty(TailFile.FILENAME, "${vrFilename}");
+ runner.setProperty(TailFile.ROLLING_FILENAME_PATTERN,
"${filename}.?");
+ runner.setProperty(TailFile.START_POSITION,
TailFile.START_CURRENT_FILE);
+ runner.setProperty(TailFile.RECURSIVE, "true");
+
+ runner.run(1);
+ runner.assertAllFlowFilesTransferred(TailFile.REL_SUCCESS, 0);
+
+ otherRaf.write("hi\n".getBytes());
--- End diff --
Oh, i see, then I agree, that's ok. Will merge
> Enable EL on BASE_DIRECTORY and FILENAME properties
> ---------------------------------------------------
>
> Key: NIFI-3008
> URL: https://issues.apache.org/jira/browse/NIFI-3008
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: 1.0.0
> Reporter: Jeff Storck
> Assignee: Jeff Storck
>
> Enable Expression Language on the BASE_DIR and FILENAME properties to allow
> usage of values in the Variable Registry.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)