Uploaded image for project: 'JBoss Server Migration Tool'
  1. JBoss Server Migration Tool
  2. CMTOOL-227

"command not found" error by jboss-server-migration.sh on modular jdk

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Final
    • 1.3.0.CR1
    • None

      Sytax error

      ./jboss-server-migration.sh: line 15: \-\-add\-modules: command not found
      

      is printed by `jboss-server-migration.sh` while running on modular jdk.

      Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      -    DEFAULT_MODULAR_JVM_OPTIONS=`echo $* | $GREP "\-\-add\-modules"`
      +    DEFAULT_MODULAR_JVM_OPTIONS=`echo $* | grep "\-\-add\-modules"`
      

      fixes the issue.

      The issue DOESN'T cause the migration procedure to fail, neither affects the process exit code.

            emartins@redhat.com Eduardo Martins
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: