Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / CTest / cmCTestUpdateCommand.h
blobf207d8c7a112723658c6634fc3ec379d699595f4
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestUpdateCommand.h,v $
5 Language: C++
6 Date: $Date: 2009-03-20 18:19:55 $
7 Version: $Revision: 1.8 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmCTestUpdateCommand_h
18 #define cmCTestUpdateCommand_h
20 #include "cmCTestHandlerCommand.h"
22 /** \class cmCTestUpdate
23 * \brief Run a ctest script
25 * cmCTestUpdateCommand defineds the command to updates the repository.
27 class cmCTestUpdateCommand : public cmCTestHandlerCommand
29 public:
31 cmCTestUpdateCommand() {}
33 /**
34 * This is a virtual constructor for the command.
36 virtual cmCommand* Clone()
38 cmCTestUpdateCommand* ni = new cmCTestUpdateCommand;
39 ni->CTest = this->CTest;
40 ni->CTestScriptHandler = this->CTestScriptHandler;
41 return ni;
44 /**
45 * The name of the command as specified in CMakeList.txt.
47 virtual const char* GetName() { return "ctest_update";}
49 /**
50 * Succinct documentation.
52 virtual const char* GetTerseDocumentation()
54 return "Update the work tree from version control.";
57 /**
58 * More documentation.
60 virtual const char* GetFullDocumentation()
62 return
63 " ctest_update([SOURCE source] [RETURN_VALUE res])\n"
64 "Updates the given source directory and stores results in Update.xml. "
65 "If no SOURCE is given, the CTEST_SOURCE_DIRECTORY variable is used. "
66 "The RETURN_VALUE option specifies a variable in which to store the "
67 "result, which is the number of files updated or -1 on error."
71 cmTypeMacro(cmCTestUpdateCommand, cmCTestHandlerCommand);
73 protected:
74 cmCTestGenericHandler* InitializeHandler();
78 #endif