[esb-issues] [JBoss JIRA] Created: (JBESB-1327) Prepend leading slash programatically in JBossRulesRouter

toby (JIRA) jira-events at lists.jboss.org
Tue Nov 13 06:37:44 EST 2007


Prepend leading slash programatically in JBossRulesRouter
---------------------------------------------------------

                 Key: JBESB-1327
                 URL: http://jira.jboss.com/jira/browse/JBESB-1327
             Project: JBoss ESB
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: Content Based Routing
    Affects Versions: 4.2.1
            Reporter: toby
            Priority: Trivial


The getRules method in org.jboss.internal.soa.esb.services.routing.cbr.JBossRulesRouter.java automatically prepends a leading slash ("/") to the resource path (the ruleSet file path) however it may be more intuitive to prepend this only if there isnt already a slash at the start:

ClassUtils.getResourceAsStream( rulesFile.charAt(0) == '/' ? rulesFile : "/" + rulesFile, JBossRulesRouter.class);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the esb-issues mailing list