aboutsummaryrefslogtreecommitdiffstats
path: root/web/utils/ServerExecute.java
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2013-04-29 11:05:09 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-12 17:28:59 -0600
commitd33715066aab8bace17bb575a1787af40f86e67a (patch)
tree2b315dbdd7839a93b344a68cc1e4c23e4902ccb8 /web/utils/ServerExecute.java
parentAdd semi-colon. (diff)
downloadPhotoFloat-d33715066aab8bace17bb575a1787af40f86e67a.tar.xz
PhotoFloat-d33715066aab8bace17bb575a1787af40f86e67a.zip
Restructuring
Import flask app as well as new makefile and entirely new directory structure.
Diffstat (limited to 'web/utils/ServerExecute.java')
-rw-r--r--web/utils/ServerExecute.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/web/utils/ServerExecute.java b/web/utils/ServerExecute.java
deleted file mode 100644
index e5dd0b1..0000000
--- a/web/utils/ServerExecute.java
+++ /dev/null
@@ -1,19 +0,0 @@
-import com.gargoylesoftware.htmlunit.WebClient;
-import com.gargoylesoftware.htmlunit.html.HtmlPage;
-
-public class ServerExecute {
- public static void main(String[] args) {
- if (args.length != 1) {
- System.err.println("You must give a url as an argument.");
- return;
- }
- try {
- final WebClient webClient = new WebClient();
- HtmlPage page = webClient.getPage(args[0]);
- webClient.waitForBackgroundJavaScript(2000);
- System.out.println(page.asXml());
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-}