Class UnsetCommand

java.lang.Object
com.sun.enterprise.admin.cli.CLICommand
com.sun.enterprise.admin.cli.UnsetCommand
All Implemented Interfaces:
org.glassfish.hk2.api.PostConstruct

@Service(name="unset") @PerLookup public class UnsetCommand extends CLICommand
A local unset command to unset environment variables.
Author:
Bill Shannon
  • Constructor Details

    • UnsetCommand

      public UnsetCommand()
  • Method Details

    • executeCommand

      public int executeCommand() throws org.glassfish.api.admin.CommandException, org.glassfish.api.admin.CommandValidationException
      Description copied from class: CLICommand
      Execute the command using the options in options and the operands in operands.
      Specified by:
      executeCommand in class CLICommand
      Returns:
      the exit code
      Throws:
      org.glassfish.api.admin.CommandException - if execution of the command fails
      org.glassfish.api.admin.CommandValidationException - if there's something wrong with the options or arguments