]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Do not use path anymore in as-flow
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 11 Aug 2010 14:13:06 +0000 (14:13 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 11 Aug 2010 14:13:06 +0000 (14:13 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@3761 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/xml/AsFlowDecorator.java

index 98d22fe1508bb64105fc4c3105a651c7737081b9..0a23b37a032f5cd990159ed28c9dccc81a6d9f4d 100644 (file)
@@ -38,19 +38,22 @@ public class AsFlowDecorator implements BeanDefinitionDecorator {
                String attrValue = ((Attr) node).getValue();
                if (attrValue.charAt(attrValue.length() - 1) == '/')
                        throw new SlcException(attrValue + " cannot end with a path");
-               int lastSlash = attrValue.lastIndexOf('/');
-               String path;
-               String flowBeanName;
-               if (lastSlash > 0) {
-                       flowBeanName = attrValue.substring(lastSlash + 1);
-                       path = attrValue.substring(0, lastSlash);
-               } else if (lastSlash == 0) {
-                       flowBeanName = attrValue.substring(lastSlash + 1);
-                       path = null;
-               } else {
-                       flowBeanName = attrValue;
-                       path = null;
-               }
+               // int lastSlash = attrValue.lastIndexOf('/');
+               // String path;
+               // String flowBeanName;
+               // if (lastSlash > 0) {
+               // flowBeanName = attrValue.substring(lastSlash + 1);
+               // path = attrValue.substring(0, lastSlash);
+               // } else if (lastSlash == 0) {
+               // flowBeanName = attrValue.substring(lastSlash + 1);
+               // path = null;
+               // } else {
+               // flowBeanName = attrValue;
+               // path = null;
+               // }
+               //
+               final String flowBeanName = attrValue;
+               final String path = null;
 
                if (log.isTraceEnabled())
                        log.debug("path=" + path + ", flowBeanName=" + flowBeanName);