use of org.eclipse.linuxtools.profiling.launch.IRemoteProxyManager in project linuxtools by eclipse.
the class RPMBuild method remoteBuild.
private IStatus remoteBuild(IResource specFile, OutputStream outStream, List<String> command) throws CoreException, URISyntaxException {
command.remove(0);
IRemoteProxyManager rmtProxyMgr = RemoteProxyManager.getInstance();
IRemoteCommandLauncher rmtCmdLauncher = null;
rmtCmdLauncher = rmtProxyMgr.getLauncher(new URI(mainFolder));
command.add(specFile.getLocationURI().getPath());
String[] empty = new String[0];
Process pProxy = rmtCmdLauncher.execute(Path.fromOSString(rpmBuildCmd), command.toArray(new String[command.size()]), empty, null, new NullProgressMonitor());
if (pProxy != null) {
return Utils.watchProcess(outStream, pProxy);
}
return Status.OK_STATUS;
}
Aggregations