Skip to content

Commit

Permalink
enabling the URLAnalysis to operate on multime input files, just use …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
orbiter committed Feb 26, 2009
1 parent c728879 commit d1d9fba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/de/anomic/data/URLAnalysis.java
Expand Up @@ -383,12 +383,12 @@ public static void sortsplit(String urlfile) {

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

0 comments on commit d1d9fba

Please sign in to comment.