Search in sources :

Example 1 with RouteJavaScriptOSGIForESBManager

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);
}
Also used : RouteJavaScriptOSGIForESBManager(org.talend.camel.designer.ui.wizards.export.RouteJavaScriptOSGIForESBManager) JobExportAction(org.talend.repository.ui.wizards.exportjob.action.JobExportAction)

Aggregations

RouteJavaScriptOSGIForESBManager (org.talend.camel.designer.ui.wizards.export.RouteJavaScriptOSGIForESBManager)1 JobExportAction (org.talend.repository.ui.wizards.exportjob.action.JobExportAction)1