Exemple #1
0
 public static void main(String[] args) throws ParameterException {
   CommandLineArgs cla = new CommandLineArgs();
   RemoteArgs ra = new RemoteArgs();
   new JCommander(Arrays.asList(cla, ra), args);
   m_dontExit = ra.dontExit;
   if (cla.port != null && ra.serPort != null) {
     throw new TestNGException(
         "Can only specify one of " + CommandLineArgs.PORT + " and " + RemoteArgs.PORT);
   }
   m_debug = cla.debug;
   m_ack = ra.ack;
   if (m_debug) {
     //      while (true) {
     initAndRun(args, cla, ra);
     //      }
   } else {
     initAndRun(args, cla, ra);
   }
 }