
org.jwat.tools.tasks.test.TestTaskCLI 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.test;
import org.jwat.tools.tasks.TaskCLI;
import com.antiaction.common.cli.CommandLine;
public class TestTaskCLI extends TaskCLI {
public static final String commandName = "test";
public static final String commandDescription = "test validity of ARC/WARC/GZip file(s)";
@Override
public void show_help() {
System.out.println("jwattools test [-beilx] [-w THREADS] [-a] ...");
System.out.println("");
System.out.println("test one or more ARC/WARC/GZip files");
System.out.println("");
System.out.println("options:");
System.out.println("");
System.out.println(" -a only test files with last-modified after ");
System.out.println(" -b tag/rename files with errors/warnings (*.bad)");
System.out.println(" -e show errors");
System.out.println(" -i --ignore-digest skip digest calculation and validation");
System.out.println(" -l relaxed URL URI validation");
System.out.println(" -x to validate text/xml payload (eg. mets)");
System.out.println(" --queue-first queue files before processing");
System.out.println(" -w set the amount of worker thread(s) (defaults to 1)");
}
@Override
public void runtask(CommandLine cmdLine) {
TestTask task = new TestTask();
task.runtask(TestTaskCLIParser.parseArguments(cmdLine));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy