|
9 | 9 | the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
10 | 10 | PURPOSE. See the above copyright notices for more information.
|
11 | 11 | =========================================================================*/
|
12 |
| -define("CHECK_IF_READABLE", 0x2); |
13 |
| -define("CHECK_IF_WRITABLE", 0x4); |
14 |
| -define("CHECK_IF_RW", 0x6); // 0x2 + 0x4; |
15 |
| -define("CHECK_IF_EXECUTABLE", 0x8); |
16 |
| -define("CHECK_IF_CHMODABLE", 0x10); |
17 |
| -define("CHECK_IF_CHMODABLE_RW", 0x16); // 0x10 + 0x6 |
| 12 | +define("MIDAS_BATCHMAKE_CHECK_IF_READABLE", 0x2); |
| 13 | +define("MIDAS_BATCHMAKE_CHECK_IF_WRITABLE", 0x4); |
| 14 | +define("MIDAS_BATCHMAKE_CHECK_IF_RW", 0x6); // 0x2 + 0x4; |
| 15 | +define("MIDAS_BATCHMAKE_CHECK_IF_EXECUTABLE", 0x8); |
| 16 | +define("MIDAS_BATCHMAKE_CHECK_IF_CHMODABLE", 0x10); |
| 17 | +define("MIDAS_BATCHMAKE_CHECK_IF_CHMODABLE_RW", 0x16); // 0x10 + 0x6 |
18 | 18 |
|
19 |
| -define("DEFAULT_MKDIR_MODE", 0775); |
| 19 | +define("MIDAS_BATCHMAKE_DEFAULT_MKDIR_MODE", 0775); |
20 | 20 |
|
21 | 21 | // Condor executables
|
22 |
| -define("CONDOR_STATUS", "condor_status"); |
23 |
| -define("CONDOR_QUEUE", "condor_q"); |
24 |
| -define("CONDOR_SUBMIT", "condor_submit"); |
25 |
| -define("CONDOR_SUBMIT_DAG", "condor_submit_dag"); |
| 22 | +define("MIDAS_BATCHMAKE_CONDOR_STATUS", "condor_status"); |
| 23 | +define("MIDAS_BATCHMAKE_CONDOR_QUEUE", "condor_q"); |
| 24 | +define("MIDAS_BATCHMAKE_CONDOR_SUBMIT", "condor_submit"); |
| 25 | +define("MIDAS_BATCHMAKE_CONDOR_SUBMIT_DAG", "condor_submit_dag"); |
26 | 26 |
|
27 | 27 | // Batchmake executable
|
28 |
| -define("BATCHMAKE_EXE", "BatchMake"); |
| 28 | +define("MIDAS_BATCHMAKE_EXE", "BatchMake"); |
29 | 29 |
|
30 | 30 | // Extension automatically appended to dagman
|
31 | 31 | // description file when 'condor_dag_submit' generates it
|
32 |
| -define("CONDOR_DAGMAN_EXT", ".condor.sub"); |
| 32 | +define("MIDAS_BATCHMAKE_CONDOR_DAGMAN_EXT", ".condor.sub"); |
33 | 33 |
|
34 | 34 | // default extension for a dagjob
|
35 |
| -define("CONDOR_SCRIPT_EXT", ".dagjob"); |
| 35 | +define("MIDAS_BATCHMAKE_CONDOR_SCRIPT_EXT", ".dagjob"); |
| 36 | +// extension for a batchmake script |
| 37 | +define("MIDAS_BATCHMAKE_BATCHMAKE_EXTENSION", ".bms"); |
36 | 38 |
|
37 | 39 | // properties set in the configuration
|
38 |
| -define("TMP_DIR_PROPERTY", "tmp_dir"); |
39 |
| -define("BIN_DIR_PROPERTY", "bin_dir"); |
40 |
| -define("SCRIPT_DIR_PROPERTY", "script_dir"); |
41 |
| -define("APP_DIR_PROPERTY", "app_dir"); |
42 |
| -define("DATA_DIR_PROPERTY", "data_dir"); |
43 |
| -define("CONDOR_BIN_DIR_PROPERTY", "condor_bin_dir"); |
| 40 | +define("MIDAS_BATCHMAKE_TMP_DIR_PROPERTY", "tmp_dir"); |
| 41 | +define("MIDAS_BATCHMAKE_BIN_DIR_PROPERTY", "bin_dir"); |
| 42 | +define("MIDAS_BATCHMAKE_SCRIPT_DIR_PROPERTY", "script_dir"); |
| 43 | +define("MIDAS_BATCHMAKE_APP_DIR_PROPERTY", "app_dir"); |
| 44 | +define("MIDAS_BATCHMAKE_DATA_DIR_PROPERTY", "data_dir"); |
| 45 | +define("MIDAS_BATCHMAKE_CONDOR_BIN_DIR_PROPERTY", "condor_bin_dir"); |
44 | 46 |
|
45 | 47 | // key for global config
|
46 |
| -define("GLOBAL_CONFIG_NAME", "global"); |
| 48 | +define("MIDAS_BATCHMAKE_GLOBAL_CONFIG_NAME", "global"); |
47 | 49 |
|
48 | 50 | // status types
|
49 |
| -define("STATUS_TYPE_INFO", "info"); |
50 |
| -define("STATUS_TYPE_WARNING", "warning"); |
51 |
| -define("STATUS_TYPE_ERROR", "error"); |
52 |
| -define("CONFIG_VALUE_MISSING", "config value missing"); |
| 51 | +define("MIDAS_BATCHMAKE_STATUS_TYPE_INFO", "info"); |
| 52 | +define("MIDAS_BATCHMAKE_STATUS_TYPE_WARNING", "warning"); |
| 53 | +define("MIDAS_BATCHMAKE_STATUS_TYPE_ERROR", "error"); |
53 | 54 |
|
54 | 55 |
|
| 56 | +// config states |
| 57 | +define("MIDAS_BATCHMAKE_CONFIG_VALUE_MISSING", "config value missing"); |
| 58 | +define("MIDAS_BATCHMAKE_CONFIG_CORRECT", "Configuration is correct"); |
| 59 | +define("MIDAS_BATCHMAKE_CONFIG_ERROR", "Configuration is in error"); |
| 60 | + |
55 | 61 | // config paths
|
56 |
| -define("BATCHMAKE_MODULE", "batchmake"); |
57 |
| -define("BATCHMAKE_CONFIGS_PATH", BASE_PATH . "/modules/" . BATCHMAKE_MODULE . "/configs/"); |
58 |
| -define("BATCHMAKE_MODULE_CONFIG", BATCHMAKE_CONFIGS_PATH . "module.ini"); |
59 |
| -define("BATCHMAKE_MODULE_LOCAL_CONFIG", BATCHMAKE_CONFIGS_PATH . "module.local.ini"); |
60 |
| -define("BATCHMAKE_MODULE_LOCAL_OLD_CONFIG", BATCHMAKE_CONFIGS_PATH . "module.local.ini.old"); |
| 62 | +define("MIDAS_BATCHMAKE_MODULE", "batchmake"); |
| 63 | +define("MIDAS_BATCHMAKE_CONFIGS_PATH", BASE_PATH . "/modules/" . MIDAS_BATCHMAKE_MODULE . "/configs/"); |
| 64 | +define("MIDAS_BATCHMAKE_MODULE_CONFIG", MIDAS_BATCHMAKE_CONFIGS_PATH . "module.ini"); |
| 65 | +define("MIDAS_BATCHMAKE_MODULE_LOCAL_CONFIG", MIDAS_BATCHMAKE_CONFIGS_PATH . "module.local.ini"); |
| 66 | +define("MIDAS_BATCHMAKE_MODULE_LOCAL_OLD_CONFIG", MIDAS_BATCHMAKE_CONFIGS_PATH . "module.local.ini.old"); |
| 67 | + |
| 68 | + |
| 69 | +// submit button name for config |
| 70 | +define("MIDAS_BATCHMAKE_SUBMIT_CONFIG","submitConfig"); |
| 71 | + |
61 | 72 |
|
62 | 73 |
|
63 | 74 |
|
64 | 75 | // strings
|
65 |
| -define("CHANGES_SAVED_STRING", 'Changes saved'); |
66 |
| -define("APPLICATION_STRING", 'Application:'); |
67 |
| -define("PHP_PROCESS_STRING", 'PHP Process'); |
68 |
| -define("PHP_PROCESS_USER_STRING", 'user'); |
69 |
| -define("PHP_PROCESS_NAME_STRING", 'name'); |
70 |
| -define("PHP_PROCESS_GROUP_STRING", 'group'); |
71 |
| -define("PHP_PROCESS_HOME_STRING", 'home'); |
72 |
| -define("PHP_PROCESS_SHELL_STRING", 'shell'); |
73 |
| -define("UNKNOWN_STRING", 'unknown'); |
74 |
| -define("AJAX_DIRECT_LOAD_ERROR_STRING", 'Why are you here ? Should be ajax.'); |
75 |
| -define("SAVE_CONFIGURATION_STRING", 'Save configuration'); |
76 |
| -define("EXIST_STRING", 'Exist'); |
77 |
| -define("NOT_FOUND_ON_CURRENT_SYSTEM_STRING", 'Not found on the current system'); |
78 |
| -define("FILE_OR_DIRECTORY_DOESNT_EXIST_STRING", "File or directory doesn't exist:"); |
| 76 | +define("MIDAS_BATCHMAKE_CHANGES_SAVED_STRING", 'Changes saved'); |
| 77 | +define("MIDAS_BATCHMAKE_APPLICATION_STRING", 'Application:'); |
| 78 | +define("MIDAS_BATCHMAKE_PHP_PROCESS_STRING", 'PHP Process'); |
| 79 | +define("MIDAS_BATCHMAKE_PHP_PROCESS_USER_STRING", 'user'); |
| 80 | +define("MIDAS_BATCHMAKE_PHP_PROCESS_NAME_STRING", 'name'); |
| 81 | +define("MIDAS_BATCHMAKE_PHP_PROCESS_GROUP_STRING", 'group'); |
| 82 | +define("MIDAS_BATCHMAKE_PHP_PROCESS_HOME_STRING", 'home'); |
| 83 | +define("MIDAS_BATCHMAKE_PHP_PROCESS_SHELL_STRING", 'shell'); |
| 84 | +define("MIDAS_BATCHMAKE_UNKNOWN_STRING", 'unknown'); |
| 85 | +define("MIDAS_BATCHMAKE_AJAX_DIRECT_LOAD_ERROR_STRING", 'Why are you here ? Should be ajax.'); |
| 86 | +define("MIDAS_BATCHMAKE_SAVE_CONFIGURATION_STRING", 'Save configuration'); |
| 87 | +define("MIDAS_BATCHMAKE_EXIST_STRING", 'Exist'); |
| 88 | +define("MIDAS_BATCHMAKE_NOT_FOUND_ON_CURRENT_SYSTEM_STRING", 'Not found on the current system'); |
| 89 | +define("MIDAS_BATCHMAKE_FILE_OR_DIRECTORY_DOESNT_EXIST_STRING", "File or directory doesn't exist:"); |
79 | 90 |
|
80 | 91 |
|
81 | 92 |
|
82 | 93 |
|
83 | 94 | // property keys
|
84 |
| -define("DIR_KEY",'dir'); |
85 |
| -define("PROPERTY_KEY",'property'); |
86 |
| -define("STATUS_KEY",'status'); |
87 |
| -define("TYPE_KEY",'type'); |
| 95 | +define("MIDAS_BATCHMAKE_DIR_KEY",'dir'); |
| 96 | +define("MIDAS_BATCHMAKE_PROPERTY_KEY",'property'); |
| 97 | +define("MIDAS_BATCHMAKE_STATUS_KEY",'status'); |
| 98 | +define("MIDAS_BATCHMAKE_TYPE_KEY",'type'); |
88 | 99 |
|
89 | 100 |
|
| 101 | +// properties for the batchmake execution view |
| 102 | +define("MIDAS_BATCHMAKE_AVAILABLE_SCRIPTS",'Batchmake Scripts'); |
| 103 | +define("MIDAS_BATCHMAKE_EDIT_CONFIG",'edit Batchmake configuration'); |
90 | 104 |
|
91 | 105 |
|
92 |
| - |
93 | 106 | ?>
|
0 commit comments