change path seperator for varient OS #139

pull/157/head
yihua.huang 11 years ago
parent eae37c868b
commit 2fd8f05fe2

@ -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()));

Loading…
Cancel
Save