Search in sources :

Example 1 with IRemoteProxyManager

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;
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) IRemoteProxyManager(org.eclipse.linuxtools.profiling.launch.IRemoteProxyManager) IRemoteCommandLauncher(org.eclipse.linuxtools.profiling.launch.IRemoteCommandLauncher) URI(java.net.URI)

Aggregations

URI (java.net.URI)1 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 IRemoteCommandLauncher (org.eclipse.linuxtools.profiling.launch.IRemoteCommandLauncher)1 IRemoteProxyManager (org.eclipse.linuxtools.profiling.launch.IRemoteProxyManager)1