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

Incorrect error if wrong option is passed to the script jboss-server-migration.sh

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.0.CR1
    • None
    • None
    • None

    Description

      Running below command with wrong "target" option (sat), gives error "missing required option:target" ; however; it should mention "Unrecognized option: -sat"
      ..........
      ./jboss-server-migration.sh -n -s /home/user/boss-eap-7.0.0 -sat /home/user/jboss-eap-7.0.5
      Missing required option: target
      ..........

      Another issue occurs if source option is "sat" or target option is "tab", it gives error:
      ..........
      1) where source is "sat" starts with "s"
      ./jboss-server-migration.sh -n -sat /home/user/jboss-eap-7.0.0 -t /home/user/jboss-eap-7.0.5
      java.lang.IllegalArgumentException: File /home/user/wildfly-server-migration/build/target/jboss-server-migration/at does not exists.

      2)where target is "tab" starts with "t"
      ./jboss-server-migration.sh -n -s /home/user/jboss-eap-7.0.0 -tab /home/user/jboss-eap-7.0.5
      java.lang.IllegalArgumentException: File /home/user/wildfly-server-migration/build/target/jboss-server-migration/ab does not exists.
      ..........

      It should mention "Unrecognized option: -sat" OR "Unrecognized option: -tab"

      However, it works fine with other options that don't start with "s" or "t" (for source and target respectively)
      ............
      ./jboss-server-migration.sh -n -s /home/user/jboss-eap-7.0.0 -abc /home/user/jboss-eap-7.0.5
      Unrecognized option: -abc
      ............

      Attachments

        Activity

          People

            emartins@redhat.com Eduardo Martins
            rhn-support-ptyagi Priyanka Tyagi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: