specifiers[inx++] = getResourceSpecifier(aeDescription);
// UimaClassFactory.produceResourceSpecifier(aeDescription);
}
for (String aeDescription : descriptorPaths) {
Import descriptorImport = new Import_impl();
// If user provides a descriptor with .xml at the end, assume he
// wants import by location
if (aeDescription.endsWith(".xml")) {
aeDescription = Utils.resolvePlaceholderIfExists(aeDescription,
System.getProperties());
if (!aeDescription.startsWith("file:")) {
aeDescription = "file:" + aeDescription;
}
descriptorImport.setLocation(aeDescription);
} else {
// uima import by name expects dot separated path as in
// a.b.descriptor and no .xml at the end
descriptorImport.setName(aeDescription);
}
String key = new String(aeDescription);
if (key.startsWith("file:")) {
key = key.substring(5); // skip "file:"
}