add page skip

master
yihua.huang 2013-06-23 16:57:01 +08:00
parent 9b1ba6e8bc
commit 7e17c71c3e
2 changed files with 15 additions and 2 deletions

View File

@ -35,6 +35,16 @@ public class Page {
private List<Request> targetRequests = new ArrayList<Request>();
private boolean skip;
public boolean isSkip() {
return skip;
}
public void setSkip(boolean skip) {
this.skip = skip;
}
public Page() {
}

View File

@ -14,8 +14,8 @@ import java.io.PrintWriter;
/**
* @author code4crafter@gmail.com <br>
* Date: 13-6-8
* Time: 9:00
* Date: 13-6-8
* Time: 9:00
*/
public class FreemarkerPipeline implements Pipeline {
@ -40,6 +40,9 @@ public class FreemarkerPipeline implements Pipeline {
@Override
public void process(Page page, Task task) {
if (page.isSkip()) {
return;
}
String path = this.path + "" + task.getUUID() + "/";
File file = new File(path);
if (!file.exists()) {