Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2015-03-09 09:52:48 +0000
committerAlexander Kurtakov2015-03-09 10:13:56 +0000
commitba8775882ed70156f6262c5952e1d388f5a63044 (patch)
tree8b87718f6adbd0e7104a3589e9ef85ef619a7a4e
parent27687b2d669b4b73ced526c871f34d001c6f12f0 (diff)
downloadorg.eclipse.linuxtools-ba8775882ed70156f6262c5952e1d388f5a63044.tar.gz
org.eclipse.linuxtools-ba8775882ed70156f6262c5952e1d388f5a63044.tar.xz
org.eclipse.linuxtools-ba8775882ed70156f6262c5952e1d388f5a63044.zip
systemtap: Remove deprecated SystemtapProcessFactory.
It is causing Java 8 javadoc to throw errors and better to remove deprecated class then fixing its javadoc. Bump the major to reflect API change. Change-Id: Ie9e562e7073131db86a7618e41df918823c0b364 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/43395 Tested-by: Hudson CI
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.structures/META-INF/MANIFEST.MF2
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.structures/pom.xml2
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/process/SystemtapProcessFactory.java98
3 files changed, 2 insertions, 100 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.structures/META-INF/MANIFEST.MF b/systemtap/org.eclipse.linuxtools.systemtap.structures/META-INF/MANIFEST.MF
index bb20ebe8b0..bfd49e9091 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.structures/META-INF/MANIFEST.MF
+++ b/systemtap/org.eclipse.linuxtools.systemtap.structures/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName
Bundle-SymbolicName: org.eclipse.linuxtools.systemtap.structures;singleton:=true
-Bundle-Version: 3.1.0.qualifier
+Bundle-Version: 4.0.0.qualifier
Bundle-Vendor: %bundleProvider
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.linuxtools.systemtap.structures,org.eclips
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.structures/pom.xml b/systemtap/org.eclipse.linuxtools.systemtap.structures/pom.xml
index 9c1129f813..7dafdecde7 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.structures/pom.xml
+++ b/systemtap/org.eclipse.linuxtools.systemtap.structures/pom.xml
@@ -18,7 +18,7 @@
</parent>
<artifactId>org.eclipse.linuxtools.systemtap.structures</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>4.0.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<name>Linux Tools Structures Plug-in</name>
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/process/SystemtapProcessFactory.java b/systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/process/SystemtapProcessFactory.java
deleted file mode 100644
index 3624243c9c..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.structures/src/org/eclipse/linuxtools/systemtap/structures/process/SystemtapProcessFactory.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat initial API and implementation.
- *******************************************************************************/
-
-package org.eclipse.linuxtools.systemtap.structures.process;
-
-import java.io.OutputStream;
-
-import org.eclipse.linuxtools.tools.launch.core.factory.LinuxtoolsProcessFactory;
-
-import com.jcraft.jsch.Channel;
-import com.jcraft.jsch.JSchException;
-
-/**
- * @deprecated Use {@link LinuxtoolsProcessFactory} instead.
- */
-@Deprecated
-public class SystemtapProcessFactory {
-
- /**
- * Runs stap with the given arguments on the given host using the given
- * credentials.
- *
- * @param user the user name to use on the remote machine.
- * @param host the host where the systemtap process will be run.
- * @param password password for authenticating with the given host.
- * @return a {@link Channel} connected to the remotely running process.
- * @throws JSchException thrown if there are problems connecting to the remote machine.
- */
- public static Channel execRemote(String[] args,
- OutputStream out, OutputStream err, String user, String host,
- String password) throws JSchException {
- return LinuxtoolsProcessFactory.execRemote(args, out, err, user, host, password);
- }
-
- /**
- * Runs stap with the given arguments on the given host using the given
- * credentials.
- *
- * @param user the user name to use on the remote machine.
- * @param host the host where the systemtap process will be run.
- * @param password password for authenticating with the given host.
- * @param envp an array with extra enviroment variables to be used when running
- * the command. Set to <code>null</code> if none are needed.
- * @return a {@link Channel} connected to the remotely running process.
- * @throws JSchException thrown if there are problems connecting to the remote machine.
- * @since 3.0
- */
- public static Channel execRemote(String[] args, OutputStream out,
- OutputStream err, String user, String host, String password, int port, String[] envp)
- throws JSchException {
- return LinuxtoolsProcessFactory.execRemote(args, out, err, user, host, password, port, envp);
- }
-
- /**
- * Runs stap with the given arguments on the given host using the given
- * credentials and waits for the process to finish executing, or until
- * the executing thread is interrupted.
- *
- * @param user the user name to use on the remote machine.
- * @param host the host where the systemtap process will be run.
- * @param password password for authenticating with the given host.
- * @return a {@link Channel} connected to the remotely running process.
- * @throws JSchException thrown if there are problems connecting to the remote machine.
- */
- public static Channel execRemoteAndWait(String[] args,
- OutputStream out, OutputStream err, String user, String host,
- String password) throws JSchException {
- return LinuxtoolsProcessFactory.execRemoteAndWait(args, out, err, user, host, password);
- }
-
- /**
- * Runs stap with the given arguments on the given host using the given
- * credentials and waits for the process to finish executing, or until
- * the executing thread is interrupted.
- *
- * @param user the user name to use on the remote machine.
- * @param host the host where the systemtap process will be run.
- * @param password password for authenticating with the given host.
- * @param envp an array with extra enviroment variables to be used when running
- * the command. Set to <code>null</code> if none are needed.
- * @return a {@link Channel} connected to the remotely running process.
- * @throws JSchException thrown if there are problems connecting to the remote machine.
- * @since 3.0
- */
- public static Channel execRemoteAndWait(String[] args, OutputStream out,
- OutputStream err, String user, String host, String password, int port, String[] envp)
- throws JSchException {
- return LinuxtoolsProcessFactory.execRemoteAndWait(args, out, err, user, host, password, port, envp);
- }
-}

Back to the top