
org.jwat.tools.tasks.pathindex.PathIndexTaskCLI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwat-tools Show documentation
Show all versions of jwat-tools Show documentation
JWAT-Tools uses the available JWAT libraries to make high level tasks available either from command-line or programmatically.
Common tasks include: Test, Compress, Decompress, CDX, Arc2Warc.
More specialised tasks include: Changed, ContainerMD, Delete, Extract, Interval, PathIndex, Unpack, Headers2CDX.
package org.jwat.tools.tasks.pathindex;
import org.jwat.tools.tasks.TaskCLI;
import com.antiaction.common.cli.CommandLine;
public class PathIndexTaskCLI extends TaskCLI {
public static final String commandName = "pathindex";
public static final String commandDescription = "create a path index file for use in wayback (unsorted)";
@Override
public void show_help() {
System.out.println("jwattools pathindex [-o OUTPUT_FILE] ...");
System.out.println("");
System.out.println("create a pathindex from one or more ARC/WARC files");
System.out.println("");
System.out.println("\tRead through ARC/WARC file(s) and create a pathindex file.");
System.out.println("\tPathindex files are primarily used with Wayback.");
System.out.println("");
System.out.println("options:");
System.out.println("");
System.out.println(" -o output pathindex filename (unsorted)");
}
@Override
public void runtask(CommandLine cmdLine) {
PathIndexTask task = new PathIndexTask();
task.runtask(PathIndexTaskCLIParser.parseArguments(cmdLine));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy