View Javadoc
1   package com.github.searls.jasmine.mojo;
2   
3   import com.github.klieber.phantomjs.locate.PhantomJsLocatorOptions;
4   
5   import java.io.File;
6   
7   public class PhantomJsOptions implements PhantomJsLocatorOptions {
8   
9     private static final String DEFAULT_PHANTOMJS_VERSION = "2.0.0";
10    private static final String DEFAULT_OUTPUT_DIRECTORY = "target/phantomjs";
11  
12    private Source source = Source.REPOSITORY;
13  
14    private String version;
15    private boolean checkSystemPath;
16    private String enforceVersion;
17  
18    private String baseUrl;
19    private File outputDirectory;
20  
21    public PhantomJsOptions() {
22      this.source = Source.REPOSITORY;
23      this.version = DEFAULT_PHANTOMJS_VERSION;
24      this.checkSystemPath = true;
25      this.enforceVersion = Boolean.TRUE.toString();
26      this.outputDirectory = new File(DEFAULT_OUTPUT_DIRECTORY);
27    }
28  
29    public Source getSource() {
30      return source;
31    }
32  
33    public void setSource(Source source) {
34      this.source = source;
35    }
36  
37    public boolean isCheckSystemPath() {
38      return checkSystemPath;
39    }
40  
41    public void setCheckSystemPath(boolean checkSystemPath) {
42      this.checkSystemPath = checkSystemPath;
43    }
44  
45    public String getEnforceVersion() {
46      return enforceVersion;
47    }
48  
49    public void setEnforceVersion(String enforceVersion) {
50      this.enforceVersion = enforceVersion;
51    }
52  
53    public String getVersion() {
54      return version;
55    }
56  
57    public void setVersion(String version) {
58      this.version = version;
59    }
60  
61    public String getBaseUrl() {
62      return baseUrl;
63    }
64  
65    public void setBaseUrl(String baseUrl) {
66      this.baseUrl = baseUrl;
67    }
68  
69    public File getOutputDirectory() {
70      return outputDirectory;
71    }
72  
73    public void setOutputDirectory(File outputDirectory) {
74      this.outputDirectory = outputDirectory;
75    }
76  }