summaryrefslogtreecommitdiffstats
path: root/JLanguageTool/src/scripts/testwikipedia.bat
diff options
context:
space:
mode:
Diffstat (limited to 'JLanguageTool/src/scripts/testwikipedia.bat')
-rw-r--r--JLanguageTool/src/scripts/testwikipedia.bat24
1 files changed, 24 insertions, 0 deletions
diff --git a/JLanguageTool/src/scripts/testwikipedia.bat b/JLanguageTool/src/scripts/testwikipedia.bat
new file mode 100644
index 0000000..6bd8aee
--- /dev/null
+++ b/JLanguageTool/src/scripts/testwikipedia.bat
@@ -0,0 +1,24 @@
+@ECHO off
+:: Check command line parameters
+IF (%2)==() GOTO usage
+IF (%1)==() GOTO usage
+IF (%1)==(?) GOTO usage
+IF (%1)==(/?) GOTO usage
+IF (%1)==(-?) GOTO usage
+IF (%1)==(--?) GOTO usage
+IF (%1)==(/help) GOTO usage
+IF (%1)==(-help) GOTO usage
+IF (%1)==(--help) GOTO usage
+
+java -Xmx512M -cp commons-lang-2.4.jar;bliki-3.0.3.jar;LanguageTool.jar de.danielnaber.languagetool.dev.wikipedia.CheckWikipediaDump - %1 %2 %3
+GOTO eof
+
+:usage
+ECHO Usage: %0 lang wikipediaXmlDump
+ECHO Where:
+ECHO - lang is a language code such as 'en' or 'de';
+ECHO - wikipediaXmlDump is the path to an unpacked Wikipedia XML dump.
+ECHO Example:
+ECHO - %0 de dewiki-20101012-pages-articles-partly.xml
+
+:eof \ No newline at end of file