Revision 39206b99
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/mock/RegistrationWorkingSetService.java | ||
---|---|---|
80 | 80 |
|
81 | 81 |
private ExtensionType extensionTypeIAPTRegData; |
82 | 82 |
|
83 |
public static boolean commandsExecuted = false; |
|
84 |
|
|
83 | 85 |
public RegistrationWorkingSetService() { |
84 | 86 |
|
85 | 87 |
} |
... | ... | |
91 | 93 |
|
92 | 94 |
private void executeSuppliedCommands() { |
93 | 95 |
|
96 |
if(commandsExecuted){ |
|
97 |
// do not run twice |
|
98 |
// a second run could take place during initialization of the web context |
|
99 |
return; |
|
100 |
} |
|
101 |
commandsExecuted = true; |
|
102 |
|
|
94 | 103 |
String wipeoutCmd = System.getProperty(PARAM_NAME_WIPEOUT); |
95 | 104 |
String createCmd = System.getProperty(PARAM_NAME_CREATE); |
96 | 105 |
|
Also available in: Unified diff
ref #6621 prevent from second run which could take place during initialization of the web context