Re: PollEnrich with File from classpath

2023-03-01 Thread Claus Ibsen
Hi You cannot poll from a classpath as that's inside a JAR. The file component uses the file system. On Thu, Mar 2, 2023 at 8:36 AM Reto Peter wrote: > Hi > > I have a simple issue with the following route: > > This works > > > .pollEnrich("file://src/main/resources/supplier/xxx/article?fileN

PollEnrich with File from classpath

2023-03-01 Thread Reto Peter
Hi I have a simple issue with the following route: This works .pollEnrich("file://src/main/resources/supplier/xxx/article?fileName=ExcelFooter.txt&noop=true&idempotent=false") But I need to replace the classpath 'src/main/resources' folder, cause otherwise it doesn't work when its deployed. How