Revision 527ecb11
Added by Andreas Müller almost 2 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/server/CdmServerUtils.java | ||
---|---|---|
14 | 14 |
import org.apache.commons.io.FileUtils; |
15 | 15 |
import org.apache.commons.text.StringEscapeUtils; |
16 | 16 |
|
17 |
import eu.etaxonomy.cdm.api.application.CdmApplicationUtils; |
|
18 | 17 |
import eu.etaxonomy.cdm.config.CdmPersistentXMLSource.CdmSourceProperties; |
19 | 18 |
import eu.etaxonomy.cdm.database.CdmPersistentDataSource; |
19 |
import eu.etaxonomy.cdm.persistence.utils.CdmPersistenceUtils; |
|
20 | 20 |
|
21 | 21 |
/** |
22 | 22 |
* @author cmathew |
... | ... | |
75 | 75 |
} |
76 | 76 |
|
77 | 77 |
public static File writeManagedServerConfig(String config, String fileName) throws IOException { |
78 |
File managedConfigFile = new File(CdmApplicationUtils.getWritableResourceDir(), fileName); |
|
78 |
//TODO we need a pass-through class for CdmPersistenceUtils once cdmlib-persistence is not available anymore on classpath) |
|
79 |
File managedConfigFile = new File(CdmPersistenceUtils.getWritableResourceDir(), fileName); |
|
79 | 80 |
if(managedConfigFile.exists()) { |
80 | 81 |
managedConfigFile.delete(); |
81 | 82 |
} |
... | ... | |
84 | 85 |
} |
85 | 86 |
return managedConfigFile; |
86 | 87 |
} |
87 |
} |
|
88 |
} |
Also available in: Unified diff
adapt CdmServerUtils to changes in CdmApplicationUtils