use of org.talend.camel.designer.ui.wizards.export.RouteDedicatedJobManager in project tesb-studio-se by Talend.
the class JavaCamelJobScriptsExportWSAction method exportRouteUsedJobBundle.
protected void exportRouteUsedJobBundle(IRepositoryNode node, File filePath, String jobVersion, String bundleName, String bundleSymbolicName, String bundleVersion, String routeName, String routeVersion, String context) throws InvocationTargetException, InterruptedException {
RouteDedicatedJobManager talendJobManager = new RouteDedicatedJobManager(getExportChoice(), context);
talendJobManager.setJobVersion(jobVersion);
talendJobManager.setBundleName(bundleName);
talendJobManager.setBundleSymbolicName(bundleSymbolicName);
talendJobManager.setBundleVersion(bundleVersion);
talendJobManager.setDestinationPath(filePath.getAbsolutePath());
talendJobManager.setRouteName(routeName);
talendJobManager.setRouteVersion(routeVersion);
talendJobManager.setGroupId(getGroupId());
talendJobManager.setArtifactId(getArtifactId());
talendJobManager.setArtifactVersion(getArtifactVersion());
JobExportAction action = new JobExportAction(Collections.singletonList(node), jobVersion, bundleVersion, talendJobManager, getTempDir(), "Job");
action.run(monitor);
}
Aggregations