/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.tridium.sys.Nre * com.tridium.util.CommandLineArguments * javax.baja.license.FeatureNotLicensedException * javax.baja.license.LicenseDatabaseException * javax.baja.nre.util.TextUtil * javax.baja.registry.TypeInfo * javax.baja.sys.BObject * javax.baja.sys.Sys * javax.baja.sys.Type */ package com.tridium.platform.command; import com.tridium.platform.command.BIPlatformCommand; import com.tridium.sys.Nre; import com.tridium.util.CommandLineArguments; import java.util.Comparator; import java.util.TreeSet; import javax.baja.license.FeatureNotLicensedException; import javax.baja.license.LicenseDatabaseException; import javax.baja.nre.util.TextUtil; import javax.baja.registry.TypeInfo; import javax.baja.sys.BObject; import javax.baja.sys.Sys; import javax.baja.sys.Type; /* * Illegal identifiers - consider using --renameillegalidents true */ public class BPlat extends BObject { public static final Type TYPE; private static BIPlatformCommand[] licensedCommands; static /* synthetic */ Class class$com$tridium$platform$command$BPlat; public Type getType() { return TYPE; } public static void commands() { BIPlatformCommand[] bIPlatformCommandArray = BPlat.getLicensedCommands(); int n = 0; while (n < bIPlatformCommandArray.length) { if (bIPlatformCommandArray[n].includeInCommandListing()) { BPlat.println(" " + bIPlatformCommandArray[n].getCommandName()); BPlat.println(" " + bIPlatformCommandArray[n].getCommandDescription()); } ++n; } BPlat.println(" installdaemon"); BPlat.println(" install the Niagara Platform service (Win32 only)"); BPlat.println(" uninstalldaemon"); BPlat.println(" remove the Niagara Platform service (Win32 only)"); BPlat.println(" stopdaemon"); BPlat.println(" stop the Niagara Platform service (Win32 only)"); BPlat.println(" restartdaemon"); BPlat.println(" restart the Niagara Platform service (Win32 only)"); } public static void usage() { if (Nre.args.parameters.length < 2) { BPlat.showUsage(); return; } BIPlatformCommand[] bIPlatformCommandArray = BPlat.getLicensedCommands(); int n = 0; while (n < bIPlatformCommandArray.length) { if (Nre.args.parameters[1].equals(bIPlatformCommandArray[n].getCommandName())) { bIPlatformCommandArray[n].usage(); return; } ++n; } BPlat.showUsage(); } private static final void showUsage() { BPlat.println(""); BPlat.println("usage:"); BPlat.println(" plat "); BPlat.println("commands:"); BPlat.commands(); BPlat.println("optional flags:"); BPlat.println(" -usage plat -usage prints this message"); BPlat.println(" plat -usage prints command"); BPlat.println(" specific usage"); BPlat.println(" -? same as -usage"); BPlat.println(" -help same as -usage"); BPlat.println(" -locale: set the default locale (en_US)"); BPlat.println(" -@