Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12874

Server migration tool should abort if unknown arguments are used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.2.0.Beta
    • 7.1.0.CR1
    • Migration
    • None
    • User Experience

    Description

      There are some small issues with the interface.

      The interface should show the longer version of the argument when longer argument is used.

      [akrajcik@akrajcik bin]$ ./jboss-server-migration.sh --interactive
      Missing argument for option: i
      usage: jboss-server-migration [-e <environment file>] [-h] [-i <true/false>] [-s <source>] [-t <target>]
       -e,--environment <environment file>   Path to the properties file containing the user environment.
       -h,--help                             jboss-server-migration
       -i,--interactive <true/false>         Indicates if the migration tool should interact (or not) with the user. Value should either be true or false.
       -s,--source <source>                  Path to the base dir of the server to migrate from.
       -t,--target <target>                  Path to the base dir of the server to migrate to.
      

      Other issue is with when server-migration-tool starts with only a small statement that extra arguments are discarded and goes on without any error.

      [akrajcik@akrajcik bin]$ ./jboss-server-migration.sh -s ../../jboss-eap-6.4/ -i false extra
      Argument(s), [extra], will be discarded.
      
      ----------------------------------------------------------
      ----  JBoss Server Migration Tool  -----------------------
      ----------------------------------------------------------
      
      Retrieving servers...
      10:29:14,106 INFO  [logger] SOURCE server name: EAP, version: 6.4.0.GA.
      10:29:14,111 INFO  [logger] TARGET server name: JBoss EAP, version: 7.1.0.GA.
      

      Attachments

        Issue Links

          Activity

            People

              emartins@redhat.com Eduardo Martins
              akrajcik@redhat.com Adam Krajcik
              Ondrej Kotek Ondrej Kotek
              Ondrej Kotek Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: