throw new ConfigurationException.MissingArgument("rsl-url",
"runtime-shared-library-path", cfgval.getSource(),
cfgval.getLine());
}
RuntimeSharedLibraryPathInfo info = new RuntimeSharedLibraryPathInfo();
// validate the first argument, the swc or open directory, required.
String include = resolvePathStrict(urls.get(0), cfgval, true);
info.setSWCPath(urls.get(0));
info.setSWCFile(new File(include));
// the rest of the args are: rsl-url, policy-file-url, rsl-url, policy-file-url,...
for (int i = 1; i < urls.size(); ++i)
{
final String url = urls.get(i);
if ((i + 1) % 2 == 0)
{
if ("".equals(url.length()))
{
// rsl urls is required
throw new ConfigurationException.MissingArgument("rsl-url",
"runtime-shared-library-path", cfgval.getSource(),
cfgval.getLine());
}
info.addRSLURL(url);
}
else
{
info.addPolicyFileURL(url);
}
}
// if the last policy file was not specified, then add an empty one so
// there are always the same number of rsls and policy files.
if ((urls.size() % 2) == 0)
{
info.addPolicyFileURL("");
}
// take local variables and add to overall arguments.
if (rslPathInfoList == null)
{