From 13e60ab2bd66f0e8f23c7fca0791e2c382a49cfd Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Wed, 11 Aug 2010 14:13:06 +0000 Subject: [PATCH] Do not use path anymore in as-flow git-svn-id: https://svn.argeo.org/slc/trunk@3761 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../core/execution/xml/AsFlowDecorator.java | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) 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); -- 2.39.2