comparison core/src/luan/modules/Utils.java @ 258:4dfa86dbca45

rename "java:" to "classpath:" git-svn-id: https://luan-java.googlecode.com/svn/trunk@259 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 28 Oct 2014 20:38:04 +0000
parents 705d14f4d8ee
children f1f7d8c7e94e
comparison
equal deleted inserted replaced
257:c5c60eca33dd 258:4dfa86dbca45
81 } 81 }
82 82
83 public static URL toUrl(String path) { 83 public static URL toUrl(String path) {
84 if( path.indexOf(':') == -1 ) 84 if( path.indexOf(':') == -1 )
85 return null; 85 return null;
86 if( path.startsWith("java:") ) { 86 if( path.startsWith("classpath:") ) {
87 path = path.substring(5); 87 path = path.substring(10);
88 if( path.contains("//") ) 88 if( path.contains("//") )
89 return null; 89 return null;
90 URL url; 90 URL url;
91 if( !path.contains("#") ) { 91 if( !path.contains("#") ) {
92 url = ClassLoader.getSystemResource(path); 92 url = ClassLoader.getSystemResource(path);