summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandy.jury2011-03-31 17:01:45 (EDT)
committer Ryan D. Brooks2011-03-31 17:01:45 (EDT)
commit8b1db868e1effee8fce8ff93aa7190263cfbe428 (patch)
treeb1d2f7bdb9de85d55f7f816b4688d972151a10f4
parent5bc39aa8e798a16a0ed39a2f9ab170af137469dd (diff)
downloadorg.eclipse.osee-8b1db868e1effee8fce8ff93aa7190263cfbe428.zip
org.eclipse.osee-8b1db868e1effee8fce8ff93aa7190263cfbe428.tar.gz
org.eclipse.osee-8b1db868e1effee8fce8ff93aa7190263cfbe428.tar.bz2
refinement: Put back deleted method Lib.handleProcess
handleProcess with two parameters was returned but deprecated.
-rw-r--r--plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Lib.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Lib.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Lib.java
index dc83b2a..16691b2 100644
--- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Lib.java
+++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/Lib.java
@@ -51,6 +51,8 @@ import java.util.Collection;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.TimeoutException;
import java.util.jar.Attributes;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
@@ -580,6 +582,29 @@ public final class Lib {
}
}
+ /**
+ * Use Processes.handleProcess(Process process, Writer output) instead
+ */
+ @Deprecated
+ public static int handleProcess(Process proc, Writer output) {
+ try {
+ return Processes.handleProcess(proc, output);
+ } catch (InterruptedException ex) {
+ ex.printStackTrace();
+ return -1;
+ } catch (ExecutionException ex) {
+ ex.printStackTrace();
+ return -1;
+ } catch (TimeoutException ex) {
+ ex.printStackTrace();
+ return -1;
+ }
+ }
+
+ /**
+ * Use Processes.handleProcess(Process process) instead
+ */
+ @Deprecated
public static int handleProcess(Process process) {
return Processes.handleProcess(process);
}