[jboss-svn-commits] JBL Code SVN: r37477 - labs/jbossesb/branches/JBESB_4_10_CP/product/tools/jonplugin/as5/src/main/java/org/jbosson/plugins/jbossesb.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Sep 23 13:53:32 EDT 2011


Author: tcunning
Date: 2011-09-23 13:53:32 -0400 (Fri, 23 Sep 2011)
New Revision: 37477

Modified:
   labs/jbossesb/branches/JBESB_4_10_CP/product/tools/jonplugin/as5/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java
Log:
JBESB-3690
When deploying unzipped, must set the deploymentName explicitly in the 
JBoss ESB plugin.


Modified: labs/jbossesb/branches/JBESB_4_10_CP/product/tools/jonplugin/as5/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_10_CP/product/tools/jonplugin/as5/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java	2011-09-23 14:04:37 UTC (rev 37476)
+++ labs/jbossesb/branches/JBESB_4_10_CP/product/tools/jonplugin/as5/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java	2011-09-23 17:53:32 UTC (rev 37477)
@@ -190,6 +190,30 @@
 		  ps.setBooleanValue(!deployTimeConfig.getSimple("deployZipped").getBooleanValue());
 		  deployTimeConfig.put(ps);
       }
+      
+      if (deployTimeConfig.get("deploymentName") == null) {
+    	  PropertySimple dn = new PropertySimple();
+    	  dn.setName("deploymentName");
+
+		  if (details != null) {
+		     if (details.getKey() != null) {
+		    	 if (details.getKey().getName() != null) {
+		    		 String deployFile = details.getKey().getName();
+		    		 File file = new File(deployFile);
+		    		 dn.setStringValue(file.getName());
+		    	 } else {
+		             throw new UnsupportedOperationException("Could not find deployment Name");
+		    	 }
+	         } else {
+	             throw new UnsupportedOperationException("Could not find key in details");
+	         }
+		  } else {
+	          throw new UnsupportedOperationException("details should not be null");
+		  }
+
+		  deployTimeConfig.put(dn);
+      }
+
 		 
       if (deployTimeConfig.get("deployFarmed") == null) {
 		  PropertySimple df = new PropertySimple();



More information about the jboss-svn-commits mailing list