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