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:"
}
if (key.endsWith(".xml")) {
key = key.substring(0, key.indexOf(".xml")); // strip ".xml"
}
// preprocess the ae descriptor name to replace "/" and
// "\" with ".". We will use the ae
// descriptor name as AE key in the aggregate
if (key.indexOf("/") != -1) {
key = key.replaceAll("/", ".");
}
if (key.indexOf("\\") != -1) {
key = key.replaceAll("\\\\", ".");
}
key = key.substring(key.lastIndexOf(".") + 1);
desc.getDelegateAnalysisEngineSpecifiersWithImports().put(key,
descriptorImport);
flowNames.add(key);
}
String fcsn;
if ( (fcsn = DuccPropertiesResolver.getInstance().getProperty(FlowControllerResourceSpecifier)) != null ) {
FlowControllerDeclaration fcd = new FlowControllerDeclaration_impl();
desc.setFlowControllerDeclaration(fcd);
fcd.setImport(new Import_impl());
fcd.setKey(FlowControllerKey);
fcd.getImport().setName(fcsn);
}
FixedFlow fixedFlow = new FixedFlow_impl();