dont allow missing jars to keep shell from starting

This commit is contained in:
Doug MacEachern 2004-07-16 15:49:02 +00:00
parent d59bc650b8
commit 7cd022b29f
1 changed files with 6 additions and 2 deletions

View File

@ -51,7 +51,6 @@ public class Shell extends ShellBase {
registerCommandHandler("penv", new ShowEnv(this)); registerCommandHandler("penv", new ShowEnv(this));
registerCommandHandler("pfile", new ProcFileInfo(this)); registerCommandHandler("pfile", new ProcFileInfo(this));
registerCommandHandler("pmodules", new ProcModuleInfo(this)); registerCommandHandler("pmodules", new ProcModuleInfo(this));
registerCommandHandler("ptql", new PTQL(this));
registerCommandHandler("cpuinfo", new CpuInfo(this)); registerCommandHandler("cpuinfo", new CpuInfo(this));
registerCommandHandler("ifconfig", new Ifconfig(this)); registerCommandHandler("ifconfig", new Ifconfig(this));
registerCommandHandler("uptime", new Uptime(this)); registerCommandHandler("uptime", new Uptime(this));
@ -59,7 +58,12 @@ public class Shell extends ShellBase {
registerCommandHandler("kill", new Kill(this)); registerCommandHandler("kill", new Kill(this));
registerCommandHandler("netstat", new Netstat(this)); registerCommandHandler("netstat", new Netstat(this));
registerCommandHandler("version", new Version(this)); registerCommandHandler("version", new Version(this));
try {
//requires junit.jar
registerCommandHandler("test", new SigarTestRunner(this)); registerCommandHandler("test", new SigarTestRunner(this));
//requires bcel-5.1.jar
registerCommandHandler("ptql", new PTQL(this));
} catch (NoClassDefFoundError e) { }
} }
public void processCommand(ShellCommandHandler handler, String args[]) public void processCommand(ShellCommandHandler handler, String args[])