use of org.talend.camel.designer.ui.wizards.export.RouteJavaScriptOSGIForESBManager in project tesb-studio-se by Talend.
the class JavaCamelJobScriptsExportWSAction method exportRouteBundle.
private void exportRouteBundle(IRepositoryNode node, File filePath, String version, String bundleName, String bundleSymbolicName, String bundleVersion, String idSuffix, Collection<String> routelets, String context) throws InvocationTargetException, InterruptedException {
final RouteJavaScriptOSGIForESBManager talendJobManager = new RouteJavaScriptOSGIForESBManager(getExportChoice(), context, routelets, statisticPort, tracePort);
talendJobManager.setBundleName(bundleName);
talendJobManager.setBundleSymbolicName(bundleSymbolicName);
talendJobManager.setBundleVersion(bundleVersion);
talendJobManager.setOsgiServiceIdSuffix(idSuffix);
talendJobManager.setMultiNodes(false);
talendJobManager.setDestinationPath(filePath.getAbsolutePath());
JobExportAction action = new JobExportAction(Collections.singletonList(node), version, bundleVersion, talendJobManager, getTempDir(), "Route");
action.run(monitor);
}
Aggregations