* startup JMeter.
*/
public void start(String[] args)
{
CLArgsParser parser = new CLArgsParser(args, options);
if (null != parser.getErrorString())
{
System.err.println("Error: " + parser.getErrorString());
System.out.println("Usage");
System.out.println(CLUtil.describeOptions(options).toString());
return;
}
try
{
initializeProperties(parser);
setProxy(parser);
log.info("Version " + JMeterUtils.getJMeterVersion());
log.info("java.version="+System.getProperty("java.version"));
if (parser.getArgumentById(VERSION_OPT) != null)
{
System.out.println(
"Apache JMeter, Copyright (c) 2002,2003 " +
"The Apache Software Foundation");
System.out.println("Version " + JMeterUtils.getJMeterVersion());
}
else if (parser.getArgumentById(HELP_OPT) != null)
{
System.out.println(
JMeterUtils.getResourceFileAsText(
"org/apache/jmeter/help.txt"));
}
else if (parser.getArgumentById(SERVER_OPT) != null)
{
startServer();
startBSH();
}
else if (parser.getArgumentById(NONGUI_OPT) == null)
{
startGui(parser.getArgumentById(TESTFILE_OPT));
startBSH();
}
else
{
startNonGui(
parser.getArgumentById(TESTFILE_OPT),
parser.getArgumentById(LOGFILE_OPT),
parser.getArgumentById(REMOTE_OPT));
startBSH();
}
}
catch (IllegalUserActionException e)
{