Repository: airavata
Updated Branches:
  refs/heads/master ea3517727 -> b70474ca5


updating computeresourceprofile creation step


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

Branch: refs/heads/master
Commit: b70474ca5761e55811a3c69e24ccca803547aed9
Parents: ea35177
Author: Saminda Wijeratne <[email protected]>
Authored: Mon Jul 7 21:17:54 2014 -0400
Committer: Saminda Wijeratne <[email protected]>
Committed: Mon Jul 7 21:17:54 2014 -0400

----------------------------------------------------------------------
 .../org/apache/airavata/client/tools/DocumentCreatorNew.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/b70474ca/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
----------------------------------------------------------------------
diff --git 
a/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
 
b/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
index 49e38e5..4f7f37d 100644
--- 
a/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
+++ 
b/modules/airavata-client/src/main/java/org/apache/airavata/client/tools/DocumentCreatorNew.java
@@ -111,12 +111,14 @@ public class DocumentCreatorNew {
                try {
                                gatewayResourceProfile = 
client.getGatewayResourceProfile("default");
                        } catch (Exception e) {
+                               
+                       }
+               if (gatewayResourceProfile==null) {
                                gatewayResourceProfile = new 
GatewayResourceProfile();
                                gatewayResourceProfile.setGatewayID("default");
                                
gatewayResourceProfile.setGatewayName("default");
                                
client.registerGatewayResourceProfile(gatewayResourceProfile);
                        }
-                       
        }
                return gatewayResourceProfile;
 

Reply via email to