1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package nl.toolforge.karma.core.cmd.impl;
20
21 import nl.toolforge.karma.core.cmd.CommandDescriptor;
22 import nl.toolforge.karma.core.cmd.CommandException;
23 import nl.toolforge.karma.core.cmd.CommandResponse;
24 import nl.toolforge.karma.core.cmd.DefaultCommand;
25 import org.apache.commons.logging.Log;
26 import org.apache.commons.logging.LogFactory;
27
28 import java.sql.Timestamp;
29
30 /***
31 *
32 * @author W.G. Helmantel
33 * @version $Id: ExitCleanCommand.java,v 1.3 2004/10/09 21:24:25 asmedes Exp $
34 */
35 public class ExitCleanCommand extends DefaultCommand {
36
37 private static Log logger = LogFactory.getLog(ExitCleanCommand.class);
38
39 protected CommandResponse response = new CommandResponse();
40
41 /***
42 *
43 * @param descriptor The command descriptor for this command.
44 */
45 public ExitCleanCommand(CommandDescriptor descriptor) {
46 super(descriptor);
47 }
48
49 public void execute() throws CommandException {
50
51
52
53 logger.info("Karma has left the building at: "+new Timestamp(System.currentTimeMillis()));
54 System.exit(0);
55 }
56
57 public CommandResponse getCommandResponse() {
58 return response;
59 }
60 }