@@ -0,0 +1,1540 @@
+package ahlers.phantom.embedded;%0A%0Aimport de.flapdoodle.embed.process.config.store.DownloadConfigBuilder;%0Aimport de.flapdoodle.embed.process.config.store.DownloadPath;%0Aimport de.flapdoodle.embed.process.extract.UUIDTempNaming;%0Aimport de.flapdoodle.embed.process.io.directories.UserHome;%0Aimport de.flapdoodle.embed.process.io.progress.StandardConsoleProgressListener;%0A%0A/**%0A * @author %5B%5Bmailto:michael@ahlers.consulting Michael Ahlers%5D%5D%0A */%0Apublic class PhantomDownloadConfigBuilder%0A        extends DownloadConfigBuilder %7B%0A%0A    public PhantomDownloadConfigBuilder() %7B%0A        fileNaming().setDefault(new UUIDTempNaming());%0A%0A        /* Official download site appears problematic for programmatic user agents. See michaelahlers/specter#1 (and ariya/phantomjs#13951). */%0A%0A        // downloadPath().setDefault(new DownloadPath(%22https://bitbucket.org/ariya/phantomjs/downloads/%22));%0A        // downloadPath().setDefault(new DownloadPath(%22https://cnpmjs.org/downloads/%22));%0A        downloadPath().setDefault(new DownloadPath(%22https://github.com/paladox/phantomjs/releases/download/2.1.7/%22));%0A%0A        progressListener().setDefault(new StandardConsoleProgressListener());%0A        packageResolver().setDefault(PhantomPackageResolver.getInstance());%0A        artifactStorePath().setDefault(new UserHome(%22.embedded-phantom%22));%0A        downloadPrefix().setDefault(new DownloadPrefix(%22phantom-download%22));%0A        userAgent().setDefault(new UserAgent(%22Mozilla/5.0 (compatible Embedded Phantom +https://github.com/michaelahlers/embedded-phantom)%22));%0A    %7D%0A%0A%7D%0A

Add default download configuration