Skip to content

Commit

Permalink
change path seperator for varient OS code4craft#139
Browse files Browse the repository at this point in the history
  • Loading branch information
code4craft committed Jun 25, 2014
1 parent eae37c8 commit 2fd8f05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public FilePageModelPipeline(String path) {

@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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public JsonFilePageModelPipeline(String path) {

@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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public JsonFilePipeline(String path) {

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

0 comments on commit 2fd8f05

Please sign in to comment.