Revision 26790e9b
Added by Andreas Müller over 3 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/proibiosphere/SynthesysCacheActivator.java | ||
---|---|---|
10 | 10 |
package eu.etaxonomy.cdm.app.proibiosphere; |
11 | 11 |
|
12 | 12 |
import java.io.File; |
13 |
import java.net.URI; |
|
14 | 13 |
import java.net.URISyntaxException; |
15 | 14 |
|
16 | 15 |
import org.apache.log4j.Logger; |
17 | 16 |
|
18 | 17 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
18 |
import eu.etaxonomy.cdm.common.URI; |
|
19 | 19 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
20 | 20 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
21 | 21 |
import eu.etaxonomy.cdm.io.common.CdmDefaultImport; |
... | ... | |
52 | 52 |
public static void main(String[] args) { |
53 | 53 |
URI source; |
54 | 54 |
try { |
55 |
URI uri = new File(xmlSource).toURI();
|
|
55 |
URI uri = URI.fromFile(new File(xmlSource));
|
|
56 | 56 |
source = new URI(uri.toString()); |
57 | 57 |
System.out.println(source.toString()); |
58 | 58 |
System.out.println("Start import from Excel Specimen data("+ source.toString() + ") ..."); |
Also available in: Unified diff
ref #9114 adapt URI to wrapper in cdmlib-app