aboutsummaryrefslogtreecommitdiffstats
path: root/web/utils/ServerExecute.java
diff options
context:
space:
mode:
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();
- }
- }
-}