Luca Burgazzoli created CAMEL-14350:
---------------------------------------
Summary: camel-main: xml routes discovery does not work outside
the classpath
Key: CAMEL-14350
URL: https://issues.apache.org/jira/browse/CAMEL-14350
Project: Camel
Issue Type: New Feature
Components: camel-core, camel-main
Affects Versions: 3.0.0
Reporter: Luca Burgazzoli
Fix For: 3.0.1, 3.1.0
assuming that the xml-routes option on camel main is set to something like:
{code}
file:path/to/soures/camel-*.xml
{code}
then camel main is unable to locate the xml routes in the target path.
Looking at the code, seems that the DefaultPackageScanResourceResolver which is
what DefaultRoutesCollector leverage under the hoods, takes into account class
path only resources.
To reproduce it, add the following tests to MainXmlTest
{code:java}
@Test
public void testMainRoutesCollectorScanDir() throws Exception {
doTestMain("file:src/test/resources/org/apache/camel/main/xml/camel-*.xml");
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)