本文整理匯總了Java中ca.nrc.cadc.auth.CertCmdArgUtil類的典型用法代碼示例。如果您正苦於以下問題:Java CertCmdArgUtil類的具體用法?Java CertCmdArgUtil怎麽用?Java CertCmdArgUtil使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CertCmdArgUtil類屬於ca.nrc.cadc.auth包,在下文中一共展示了CertCmdArgUtil類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: usage
import ca.nrc.cadc.auth.CertCmdArgUtil; //導入依賴的package包/類
public static String usage()
{
String NEWLINE = System.getProperty("line.separator");
StringBuilder sb = new StringBuilder();
sb.append("usage: ").append(NEWLINE);
sb.append("\tRequired arguments:").append(NEWLINE);
sb.append("\t--").append(Argument.COLLECTION).append("=\t\t < Observation.collection >").append(NEWLINE);
sb.append("\t--").append(Argument.OBSERVATION_ID).append("=\t < Observation.observationID >").append(NEWLINE);
sb.append("\t--").append(Argument.PRODUCT_ID).append("=\t\t < Plane.productID >").append(NEWLINE);
sb.append("\t--").append(Argument.URI).append("=\t\t\t < comma separated list of URI > (files to be ingested)").append(NEWLINE);
sb.append("\t--").append(Argument.OUT).append("=\t\t\t < XML output filename >").append(NEWLINE);
sb.append(NEWLINE);
sb.append("Optional arguments:").append(NEWLINE);
sb.append("\t-v | --verbose\t\t enable verbose output").append(NEWLINE);
sb.append("\t-d | --debug\t\t enable debug output").append(NEWLINE);
sb.append("\t-h | --help\t\t show this usage message").append(NEWLINE);
sb.append("\t-").append(NETRC_SHORT).append(" | --").append(NETRC).append("\t\t use $HOME/.netrc to get http authentication credentials").append(NEWLINE);
sb.append("\t--").append(Argument.IN).append("\t\t\t < XML input filename >").append(NEWLINE);
sb.append("\t--").append(Argument.CONFIG).append("=\t\t < optional CAOM2 utype to keyword config file to merge with the internal configuration >").append(NEWLINE);
sb.append("\t--").append(Argument.DEFAULT).append("=\t\t < file with default values for keywords >").append(NEWLINE);
sb.append("\t--").append(Argument.DUMPCONFIG).append("\t\t output the utype to keyword mapping to the console").append(NEWLINE);
sb.append("\t--").append(Argument.OVERRIDE).append("=\t\t < file with override values for keywords >").append(NEWLINE);
sb.append("\t--").append(Argument.LOCAL).append("=\t\t\t < list of files in local filesystem > (same order as ").append(Argument.URI).append(")").append(NEWLINE);
sb.append("\t--").append(Argument.LOG).append("=\t\t\t < log file name > (instead of console)").append(NEWLINE);
sb.append("\t--").append(Argument.IGNORE_PARTIAL_WCS).append("\t\t do not stop and exit upon finding partial WCS").append(NEWLINE);
sb.append("\t--").append(Argument.TEST).append("\t\t\t test mode, do not persist to database").append(NEWLINE);
// sb.append("\t--").append(Argument.VERSION).append("\t\t output the version number of fits2caom2 and included jars").append(NEWLINE);
sb.append("\t").append(CertCmdArgUtil.getCertArgUsage()).append(NEWLINE);
return sb.toString();
}
示例2: setUpClass
import ca.nrc.cadc.auth.CertCmdArgUtil; //導入依賴的package包/類
@BeforeClass
public static void setUpClass() throws Exception
{
// collection, observationID, productID, uri, out
minimalArguments = new String[]
{
"--" + Argument.COLLECTION + "=arg.collection",
"--" + Argument.OBSERVATION_ID + "=arg.observationID",
"--" + Argument.PRODUCT_ID + "=arg.productID",
"--" + Argument.URI + "=ad:FOO/bar",
"--" + Argument.OUT + "=src/test/resources/out.xml"
};
// collection, observationID, productID, uri, out,
// local, in, config, default, override,
// temp, netrc, test, keep, no-retrieve
allArguments = new String[]
{
"--" + Argument.COLLECTION + "=arg.collection",
"--" + Argument.OBSERVATION_ID + "=arg.observationID",
"--" + Argument.PRODUCT_ID + "=arg.productID",
"--" + Argument.URI + "=ad:FOO/bar",
"--" + Argument.OUT + "=src/test/resources/out.xml",
"--" + Argument.LOCAL + "=foo-bar.fits",
"--" + Argument.IN + "=src/test/resources/in.xml",
"--" + Argument.CONFIG + "=src/test/resources/userConfig.config",
"--" + Argument.DEFAULT + "=src/test/resources/fits2caom2-simple.default",
"--" + Argument.OVERRIDE + "=src/test/resources/fits2caom2.override",
"--" + Argument.TEMP + "=/tmp",
"--" + Argument.IGNORE_PARTIAL_WCS,
"-" + Argument.NETRC_SHORT,
"--" + Argument.NETRC,
"--" + Argument.KEEP,
"--" + Argument.TEST,
"--" + CertCmdArgUtil.ARG_CERT + "=src/test/resources/fakeproxy.pem"
};
}