You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ch...@apache.org on 2015/01/14 19:07:22 UTC

airavata git commit: fixing throwing exception when stdout is empty

Repository: airavata
Updated Branches:
  refs/heads/master e96d4464a -> 0a85dfe02


fixing throwing exception when stdout is empty


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/0a85dfe0
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/0a85dfe0
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/0a85dfe0

Branch: refs/heads/master
Commit: 0a85dfe02d7cdd22ce643cdbd6da32d7c3812e31
Parents: e96d446
Author: Chathuri Wimalasena <ka...@gmail.com>
Authored: Wed Jan 14 13:07:02 2015 -0500
Committer: Chathuri Wimalasena <ka...@gmail.com>
Committed: Wed Jan 14 13:07:02 2015 -0500

----------------------------------------------------------------------
 .../org/apache/airavata/gfac/core/utils/OutputUtils.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/0a85dfe0/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/OutputUtils.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/OutputUtils.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/OutputUtils.java
index 574fab8..3c8bbf0 100644
--- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/OutputUtils.java
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/utils/OutputUtils.java
@@ -35,10 +35,10 @@ public class OutputUtils {
     private static String regexPattern = "\\s*=\\s*(.*)\\r?\\n";
 
 	public static void fillOutputFromStdout(Map<String, Object> output, String stdout, String stderr, List<OutputDataObjectType> outputArray) throws Exception {
-
-		if (stdout == null || stdout.equals("")) {
-			throw new GFacHandlerException("Standard output is empty.");
-		}
+        // this is no longer correct
+//		if (stdout == null || stdout.equals("")) {
+//			throw new GFacHandlerException("Standard output is empty.");
+//		}
 
 		Set<String> keys = output.keySet();
         OutputDataObjectType actual = null;