@@ -134,6 +134,11 @@ public List<String> getMlcpArguments() throws IOException {
134134 arguments .add (sourceOptions .getInputFilePattern ());
135135 }
136136
137+ if (sourceOptions .getCollection () != null ) {
138+ arguments .add ("-output_collections" );
139+ arguments .add (sourceOptions .getCollection ());
140+ }
141+
137142 // by default, cut the source directory path to make URIs shorter
138143 String uriReplace = canonicalPath + ",''" ;
139144 uriReplace = uriReplace .replaceAll ("\\ \\ " , "/" );
@@ -157,6 +162,7 @@ public static class SourceOptions {
157162 private String flowType ;
158163 private String inputFileType ;
159164 private String inputFilePattern ;
165+ private String collection ;
160166
161167 public SourceOptions (String entityName , String flowName , String flowType ) {
162168 this .entityName = entityName ;
@@ -192,6 +198,14 @@ public void setInputFilePattern(String inputFilePattern) {
192198 this .inputFilePattern = inputFilePattern ;
193199 }
194200
201+ public String getCollection () {
202+ return collection ;
203+ }
204+
205+ public void setCollection (String collection ) {
206+ this .collection = collection ;
207+ }
208+
195209 protected String getTransformParams () {
196210 return String
197211 .format ("<params><entity-name>%s</entity-name><flow-name>%s</flow-name><flow-type>%s</flow-type></params>" ,
0 commit comments