add page skip
parent
9b1ba6e8bc
commit
7e17c71c3e
|
@ -35,6 +35,16 @@ public class Page {
|
||||||
|
|
||||||
private List<Request> targetRequests = new ArrayList<Request>();
|
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() {
|
public Page() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,9 @@ public class FreemarkerPipeline implements Pipeline {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void process(Page page, Task task) {
|
public void process(Page page, Task task) {
|
||||||
|
if (page.isSkip()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
String path = this.path + "" + task.getUUID() + "/";
|
String path = this.path + "" + task.getUUID() + "/";
|
||||||
File file = new File(path);
|
File file = new File(path);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
|
|
Loading…
Reference in New Issue