use of com.centurylink.mdw.cli.Import in project mdw-designer by CenturyLinkCloud.
the class ImportPackageWizard method importFromMaven.
void importFromMaven(String fileName, WorkflowProject wfp, List<java.io.File> includes, IProgressMonitor monitor) throws IOException {
int index = fileName.indexOf(' ');
String pkg = fileName.substring(0, index);
String artifact = pkg.replace(groupId.replace(".assets", "."), "").replace('.', '-');
java.io.File assetDir = wfp.getAssetDir();
Import importer = new Import(groupId, artifact, fileName.substring(index + 2));
importer.setAssetLoc(assetDir.getPath());
importer.setForce(true);
importer.run(new SwtProgressMonitor(monitor));
if (wfp.isRemote())
includes.add(new java.io.File(assetDir + "/" + pkg.replace('.', '/')));
}
Aggregations