1 23 24 package com.sun.enterprise.cli.commands; 25 26 import com.sun.enterprise.cli.framework.*; 27 28 32 public class SampleCommand extends Command 33 { 34 38 public void runCommand() 39 throws CommandException, CommandValidationException 40 { 41 CLILogger.getInstance().printMessage("**************************************"); 42 CLILogger.getInstance().printMessage("* Hello, this is a sample command. *"); 43 CLILogger.getInstance().printMessage("**************************************"); 44 } 45 46 53 public boolean validateOptions() throws CommandValidationException 54 { 55 return true; 56 } 57 58 } 59 | Popular Tags |