Revision 1de2da8c
Added by unknown over 7 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/common/CacheUpdater.java | ||
---|---|---|
65 | 65 |
config = CacheUpdaterConfigurator.NewInstance(destination, classListStrings); |
66 | 66 |
|
67 | 67 |
// invoke import |
68 |
CdmDefaultImport<CacheUpdaterConfigurator> myImport = new CdmDefaultImport<CacheUpdaterConfigurator>();
|
|
68 |
CdmDefaultImport<CacheUpdaterConfigurator> myImport = new CdmDefaultImport<>(); |
|
69 | 69 |
result = myImport.invoke(config); |
70 | 70 |
//String successString = success ? "successful" : " with errors "; |
71 | 71 |
//System.out.println("End updating caches for "+ destination.getDatabase() + "..." + successString); |
72 | 72 |
return result; |
73 | 73 |
} catch (ClassNotFoundException e) { |
74 | 74 |
logger.error(e); |
75 |
result.setSuccess(false);
|
|
75 |
result.addException(e);
|
|
76 | 76 |
return result; |
77 | 77 |
} |
78 | 78 |
} |
Also available in: Unified diff
ref #6541 adapt appImport to new ImportResult structure