Hi,

I want to create simple routing in camel, to filter and move file

the case, I have one input folder, depends on the extention, it will be
moved to other folder

my routings are
try {
            context.addRoutes(new RouteBuilder() {
                public void configure() {

 from("file:data/inbox?noop=false&include=*.png").to("file:data/png");
                }
            });
        } catch (Exception e) {
            System.out.println(e.getMessage());
}

however, i got the following errors ..

WARNING: Consumer Consumer[file://data/inbox?include=*.png&noop=false] could
not poll endpoint: file://data/inbox?include=*.png&noop=false caused by:
Dangling meta character '*' near index 0
*.png
^
java.util.regex.PatternSyntaxException: Dangling meta character '*' near
index 0
*.png
^
        at java.util.regex.Pattern.error(Pattern.java:1713)

any idea what i'm missing here ?

Reply via email to