Search in sources :

Example 1 with CommandLineArgs

use of org.testng.CommandLineArgs in project druid by druid-io.

the class RemoteTestNG method main.

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);
    }
}
Also used : JCommander(com.beust.jcommander.JCommander) CommandLineArgs(org.testng.CommandLineArgs) TestNGException(org.testng.TestNGException)

Aggregations

JCommander (com.beust.jcommander.JCommander)1 CommandLineArgs (org.testng.CommandLineArgs)1 TestNGException (org.testng.TestNGException)1