add page skip
parent
9b1ba6e8bc
commit
7e17c71c3e
|
@ -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() {
|
||||
}
|
||||
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue