Author: jaz
Date: Fri Jan 5 10:48:10 2007
New Revision: 493135
URL:
http://svn.apache.org/viewvc?view=rev&rev=493135Log:
allows the 'service' element to be passed, but returns a warning message
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/group/GroupModel.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/group/GroupModel.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/group/GroupModel.java?view=diff&rev=493135&r1=493134&r2=493135==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/group/GroupModel.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/group/GroupModel.java Fri Jan 5 10:48:10 2007
@@ -62,11 +62,16 @@
Element service = (Element) i.next();
services.add(new GroupServiceModel(service));
}
- } else {
- List oldServiceTags = UtilXml.childElementList(group, "service");
- if (oldServiceTags != null && oldServiceTags.size() > 0) {
- Debug.logWarning("Service Group Definition : [" + group.getAttribute("name") + "] found with OLD 'service' attribute, change to use 'invoke'", module);
+ }
+
+ List oldServiceTags = UtilXml.childElementList(group, "service");
+ if (oldServiceTags != null && oldServiceTags.size() > 0) {
+ Iterator i = oldServiceTags.iterator();
+ while (i.hasNext()) {
+ Element service = (Element) i.next();
+ services.add(new GroupServiceModel(service));
}
+ Debug.logWarning("Service Group Definition : [" + group.getAttribute("name") + "] found with OLD 'service' attribute, change to use 'invoke'", module);
}
if (Debug.verboseOn()) Debug.logVerbose("Created Service Group Model --> " + this, module);