enabling the URLAnalysis to operate on multime input files, just use a wild card when calling the class from the command line

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5658 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent c728879ab8
commit d1d9fbae5c

@ -383,12 +383,12 @@ public class URLAnalysis {
public static void main(String[] args) { public static void main(String[] args) {
// example: java -Xmx1000m -cp classes de.anomic.data.URLAnalysis -stat DATA/EXPORT/urls1.txt.gz // example: java -Xmx1000m -cp classes de.anomic.data.URLAnalysis -stat DATA/EXPORT/urls1.txt.gz
if (args[0].equals("-stat") && args.length == 2) { if (args[0].equals("-stat") && args.length >= 2) {
genstat(args[1]); for (int i = 1; i < args.length; i++) genstat(args[i]);
} else if (args[0].equals("-host") && args.length == 2) { } else if (args[0].equals("-host") && args.length >= 2) {
genhost(args[1]); for (int i = 1; i < args.length; i++) genhost(args[i]);
} else if (args[0].equals("-sort") && args.length == 2) { } else if (args[0].equals("-sort") && args.length >= 2) {
sortsplit(args[1]); for (int i = 1; i < args.length; i++) sortsplit(args[i]);
} else { } else {
System.out.println("usage:"); System.out.println("usage:");
System.out.println("-stat <file> generate a statistics about common words in file, store to <file>.stat"); System.out.println("-stat <file> generate a statistics about common words in file, store to <file>.stat");

Loading…
Cancel
Save