From: Mathieu Baudier Date: Wed, 11 Aug 2010 14:13:06 +0000 (+0000) Subject: Do not use path anymore in as-flow X-Git-Tag: argeo-slc-2.1.7~1194 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=13e60ab2bd66f0e8f23c7fca0791e2c382a49cfd;hp=11bb9a8c7bf5c5c9162d4cb49a9fce4882201de4;p=gpl%2Fargeo-slc.git Do not use path anymore in as-flow git-svn-id: https://svn.argeo.org/slc/trunk@3761 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- 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);