Skip to content

Commit 9eede67

Browse files
committed
Added default input file path in loading data
1 parent ba32da8 commit 9eede67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

quick-start/src/main/java/com/marklogic/hub/config/EnvironmentConfiguration.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import java.io.IOException;
1010
import java.io.InputStream;
1111
import java.io.OutputStream;
12+
import java.nio.file.Paths;
1213
import java.util.Properties;
1314

1415
import org.slf4j.Logger;
@@ -263,7 +264,8 @@ public String getFlowMlcpOptionsFromFile(String entityName, String flowName) thr
263264
if(file.exists()) {
264265
return Files.toString(file, Charsets.UTF_8);
265266
}
266-
return "{}";
267+
String currentDirectory = Paths.get("").toAbsolutePath().toString();
268+
return "{ \"input_file_path\": \"" + currentDirectory + "\" }";
267269
}
268270

269271
public HubConfig getHubConfig() {

0 commit comments

Comments
 (0)