You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/24 10:29:23 UTC

[GitHub] [camel-karavan] efrancis59 opened a new issue #123: Problem with loading resources on windows

efrancis59 opened a new issue #123:
URL: https://github.com/apache/camel-karavan/issues/123


   The **karavan-app** doesn't work correctly on windows. The problem is caused by the **split** method on the path that uses the "/" character.
   ```
       public List<String> getList() { 
           return vertx.fileSystem().readDirBlocking(Paths.get(components).toString()) 
                   .stream() 
                   .filter(s -> s.endsWith(".json")) 
                   .map(s -> { 
                       String[] parts = s.split("/"); 
                       return parts[parts.length - 1]; 
                   }).collect(Collectors.toList()); 
       } 
   ```
   The split can use the file system separator : 
    `s.split(Pattern.quote(File.separator));`
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-karavan] mgubaidullin closed issue #123: Problem with loading resources on windows

Posted by GitBox <gi...@apache.org>.
mgubaidullin closed issue #123:
URL: https://github.com/apache/camel-karavan/issues/123


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org