[savara-commits] savara SVN: r212 - tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/generator.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Mar 25 18:07:38 EDT 2010


Author: objectiser
Date: 2010-03-25 18:07:38 -0400 (Thu, 25 Mar 2010)
New Revision: 212

Modified:
   tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/generator/Generator.java
Log:
Fix WSDL generation problem.

Modified: tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/generator/Generator.java
===================================================================
--- tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/generator/Generator.java	2010-03-25 21:56:52 UTC (rev 211)
+++ tools/eclipse/trunk/plugins/org.jboss.savara.tools.bpel/src/java/org/jboss/savara/tools/bpel/generator/Generator.java	2010-03-25 22:07:38 UTC (rev 212)
@@ -320,7 +320,8 @@
 						// Generate imports for specified message schema
 						for (Namespace ns : contract.getNamespaces()) {
 							
-							if (ns.getSchemaLocation() != null) {
+							if (ns.getSchemaLocation() != null &&
+									ns.getSchemaLocation().trim().length() > 0) {
 								IFile file=cdmResource.getParent().getFile(new Path(ns.getSchemaLocation()));
 								
 								javax.wsdl.Import imp=defns.get(0).createImport();



More information about the savara-commits mailing list