Revision 26790e9b
Added by Andreas Müller over 3 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/sdd/SDDImportActivator.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.cdm.app.sdd; |
10 | 10 |
|
11 |
import java.net.URI; |
|
12 | 11 |
import java.net.URISyntaxException; |
13 | 12 |
import java.net.URL; |
14 | 13 |
import java.sql.SQLException; |
... | ... | |
17 | 16 |
import org.springframework.util.Assert; |
18 | 17 |
|
19 | 18 |
import eu.etaxonomy.cdm.common.CdmUtils; |
19 |
import eu.etaxonomy.cdm.common.URI; |
|
20 | 20 |
import eu.etaxonomy.cdm.database.CdmDataSource; |
21 | 21 |
import eu.etaxonomy.cdm.database.CdmPersistentDataSource; |
22 | 22 |
import eu.etaxonomy.cdm.database.DataSourceNotFoundException; |
... | ... | |
99 | 99 |
URL url = SDDImportActivator.class.getResource("/sdd/ant.sdd.xml"); |
100 | 100 |
//sdd/SDD-Test-Simple.xml |
101 | 101 |
System.out.println("url"+ url); |
102 |
source = url.toURI();
|
|
102 |
source = URI.fromUrl(url);
|
|
103 | 103 |
//source = new URI("/eu/etaxonomy/cdm/app/sdd/SDDImportTest-input3.xml"); |
104 | 104 |
System.out.println("Start import from SDD("+ source.toString() + ") ..."); |
105 | 105 |
|
Also available in: Unified diff
ref #9114 adapt URI to wrapper in cdmlib-app