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() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ import java.io.PrintWriter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author code4crafter@gmail.com <br>
|
* @author code4crafter@gmail.com <br>
|
||||||
* Date: 13-6-8
|
* Date: 13-6-8
|
||||||
* Time: 下午9:00
|
* Time: 下午9:00
|
||||||
*/
|
*/
|
||||||
public class FreemarkerPipeline implements Pipeline {
|
public class FreemarkerPipeline implements Pipeline {
|
||||||
|
|
||||||
|
@ -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