@@ -49,6 +49,9 @@ class RunFlowTask extends HubTask {
4949 @Input
5050 public String outputURIReplacement
5151
52+ @Input
53+ public String separator
54+
5255 @Input
5356 public Boolean showOptions
5457
@@ -97,6 +100,11 @@ class RunFlowTask extends HubTask {
97100 project. property(" inputFileType" ) : null
98101 }
99102
103+ if (separator == null ) {
104+ separator = project. hasProperty(" separator" ) ?
105+ project. property(" separator" ) : null
106+ }
107+
100108 if (outputURIReplacement == null ) {
101109 outputURIReplacement = project. hasProperty(" outputURIReplacement" ) ?
102110 project. property(" outputURIReplacement" ) : null
@@ -162,7 +170,7 @@ class RunFlowTask extends HubTask {
162170 stepConfig. put(" stopOnFailure" , failHard)
163171 }
164172
165- if (inputFileType != null || inputFilePath != null || outputURIReplacement != null ){
173+ if (inputFileType != null || inputFilePath != null || outputURIReplacement != null || separator != null ){
166174 runFlowString. append(" \n\t With File Locations Settings:" )
167175 Map<String , String > fileLocations = new HashMap<> ()
168176 if (inputFileType != null ) {
@@ -177,6 +185,14 @@ class RunFlowTask extends HubTask {
177185 runFlowString. append(" \n\t\t Output URI Replacement:" + outputURIReplacement. toString())
178186 fileLocations. put(" outputURIReplacement" , outputURIReplacement)
179187 }
188+ if (separator != null ) {
189+ if (inputFileType != null && ! inputFileType. equalsIgnoreCase(" csv" )) {
190+ throw new IllegalArgumentException (" Invalid argument for file type " + inputFileType)
191+ }
192+ runFlowString. append(" \n\t\t Separator:" + separator. toString())
193+ fileLocations. put(" separator" , separator)
194+ }
195+
180196 stepConfig. put(" fileLocations" , fileLocations)
181197 }
182198 if (showOptions) {
0 commit comments