Commit 2fd8f05f authored by yihua.huang's avatar yihua.huang

change path seperator for varient OS #139

parent eae37c86
......@@ -37,7 +37,7 @@ public class FilePageModelPipeline extends FilePersistentBase implements PageMod
@Override
public void process(Object o, Task task) {
String path = this.path + "/" + task.getUUID() + "/";
String path = this.path + PATH_SEPERATOR + task.getUUID() + PATH_SEPERATOR;
try {
String filename;
if (o instanceof HasKey) {
......
......@@ -38,7 +38,7 @@ public class JsonFilePageModelPipeline extends FilePersistentBase implements Pag
@Override
public void process(Object o, Task task) {
String path = this.path + "/" + task.getUUID() + "/";
String path = this.path + PATH_SEPERATOR + task.getUUID() + PATH_SEPERATOR;
try {
String filename;
if (o instanceof HasKey) {
......
......@@ -35,7 +35,7 @@ public class JsonFilePipeline extends FilePersistentBase implements Pipeline {
@Override
public void process(ResultItems resultItems, Task task) {
String path = this.path + "/" + task.getUUID() + "/";
String path = this.path + PATH_SEPERATOR + task.getUUID() + PATH_SEPERATOR;
try {
PrintWriter printWriter = new PrintWriter(new FileWriter(getFile(path + DigestUtils.md5Hex(resultItems.getRequest().getUrl()) + ".json")));
printWriter.write(JSON.toJSONString(resultItems.getAll()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment