mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
DS-4260: Remove non-existing command from oai harvester's help
This commit is contained in:
@@ -60,7 +60,6 @@ public class Harvest {
|
|||||||
options.addOption("p", "purge", false, "delete all items in the collection");
|
options.addOption("p", "purge", false, "delete all items in the collection");
|
||||||
options.addOption("r", "run", false, "run the standard harvest procedure");
|
options.addOption("r", "run", false, "run the standard harvest procedure");
|
||||||
options.addOption("g", "ping", false, "test the OAI server and set");
|
options.addOption("g", "ping", false, "test the OAI server and set");
|
||||||
options.addOption("o", "once", false, "run the harvest procedure with specified parameters");
|
|
||||||
options.addOption("s", "setup", false, "Set the collection up for harvesting");
|
options.addOption("s", "setup", false, "Set the collection up for harvesting");
|
||||||
options.addOption("S", "start", false, "start the harvest loop");
|
options.addOption("S", "start", false, "start the harvest loop");
|
||||||
options.addOption("R", "reset", false, "reset harvest status on all collections");
|
options.addOption("R", "reset", false, "reset harvest status on all collections");
|
||||||
@@ -97,9 +96,6 @@ public class Harvest {
|
|||||||
HelpFormatter myhelp = new HelpFormatter();
|
HelpFormatter myhelp = new HelpFormatter();
|
||||||
myhelp.printHelp("Harvest\n", options);
|
myhelp.printHelp("Harvest\n", options);
|
||||||
System.out.println("\nPING OAI server: Harvest -g -a oai_source -i oai_set_id");
|
System.out.println("\nPING OAI server: Harvest -g -a oai_source -i oai_set_id");
|
||||||
System.out.println(
|
|
||||||
"RUNONCE harvest with arbitrary options: Harvest -o -e eperson -c collection -t harvest_type -a " +
|
|
||||||
"oai_source -i oai_set_id -m metadata_format");
|
|
||||||
System.out.println(
|
System.out.println(
|
||||||
"SETUP a collection for harvesting: Harvest -s -c collection -t harvest_type -a oai_source -i " +
|
"SETUP a collection for harvesting: Harvest -s -c collection -t harvest_type -a oai_source -i " +
|
||||||
"oai_set_id -m metadata_format");
|
"oai_set_id -m metadata_format");
|
||||||
@@ -125,9 +121,6 @@ public class Harvest {
|
|||||||
if (line.hasOption('g')) {
|
if (line.hasOption('g')) {
|
||||||
command = "ping";
|
command = "ping";
|
||||||
}
|
}
|
||||||
if (line.hasOption('o')) {
|
|
||||||
command = "runOnce";
|
|
||||||
}
|
|
||||||
if (line.hasOption('S')) {
|
if (line.hasOption('S')) {
|
||||||
command = "start";
|
command = "start";
|
||||||
}
|
}
|
||||||
@@ -246,6 +239,10 @@ public class Harvest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pingResponder(oaiSource, oaiSetID, metadataKey);
|
pingResponder(oaiSource, oaiSetID, metadataKey);
|
||||||
|
} else {
|
||||||
|
System.out.println("Error - your command '" + command + "' was not recoginzed properly");
|
||||||
|
System.out.println(" (run with -h flag for details)");
|
||||||
|
System.exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user