X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2Fxml%2FAsFlowDecorator.java;h=0a23b37a032f5cd990159ed28c9dccc81a6d9f4d;hb=13e60ab2bd66f0e8f23c7fca0791e2c382a49cfd;hp=98d22fe1508bb64105fc4c3105a651c7737081b9;hpb=11bb9a8c7bf5c5c9162d4cb49a9fce4882201de4;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/xml/AsFlowDecorator.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/xml/AsFlowDecorator.java index 98d22fe15..0a23b37a0 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/xml/AsFlowDecorator.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/xml/AsFlowDecorator.java @@ -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);