Commit 7e17c71c authored by yihua.huang's avatar yihua.huang

add page skip

parent 9b1ba6e8
......@@ -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() {
}
......
......@@ -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()) {
......
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