Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21085

camel-jbang - Init - Support providing absolute path for camel file creation using Camel JBang

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.7.0
    • 4.9.0
    • camel-jbang
    • None
    • Unknown

    Description

      currently it is failing with this kind of error:

      (base) apupier@localhost:~/ws/record-gif-readme$ jbang '-Dcamel.jbang.version=4.7.0' camel@apache/camel init /home/apupier/ws/record-gif-readme/target-folder/anothersecondone.camel.yaml
      java.io.FileNotFoundException: ./home/apupier/ws/record-gif-readme/target-folder/anothersecondone.camel.yaml (No such file or directory)
              at java.base/java.io.FileOutputStream.open0(Native Method)
              at java.base/java.io.FileOutputStream.open(FileOutputStream.java:289)
              at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:230)
              at org.apache.camel.dsl.jbang.core.commands.Init.execute(Init.java:174)
              at org.apache.camel.dsl.jbang.core.commands.Init.doCall(Init.java:82)
              at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
              at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
              at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
              at picocli.CommandLine.access$1500(CommandLine.java:148)
              at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
              at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
              at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
              at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
              at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
              at picocli.CommandLine.execute(CommandLine.java:2174)
              at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:168)
              at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:61)
              at main.CamelJBang.main(CamelJBang.java:36)
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              apupier Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: