-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
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
............