Project

General

Profile

« Previous | Next » 

Revision 26790e9b

Added by Andreas Müller over 3 years ago

ref #9114 adapt URI to wrapper in cdmlib-app

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/caryophyllales/XlsSources.java
11 11

  
12 12
import java.io.File;
13 13
import java.net.MalformedURLException;
14
import java.net.URI;
15 14
import java.net.URISyntaxException;
16 15
import java.net.URL;
17 16

  
18 17
import org.apache.log4j.Logger;
19 18

  
19
import eu.etaxonomy.cdm.common.URI;
20

  
20 21

  
21 22

  
22 23
/**
......
40 41
			if (! exists) {
41 42
                throw new RuntimeException("File not found: " + url);
42 43
            }
43
			URI uri = url.toURI();
44
			URI uri = URI.fromUrl(url);
44 45
			return uri;
45 46
		} catch (MalformedURLException e1) {
46 47
			// TODO Auto-generated catch block

Also available in: Unified diff