Revision 2441
org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/util/URLUtils.java | ||
---|---|---|
137 | 137 |
} |
138 | 138 |
URL url; |
139 | 139 |
try { |
140 |
if( StringUtils.contains(f.getAbsolutePath(), "<%=") ) {
|
|
141 |
url = new URL("file", null, f.getAbsolutePath());
|
|
140 |
if( StringUtils.contains(f.getPath(), "<%=") ) { |
|
141 |
url = new URL("file", null, f.getPath()); |
|
142 | 142 |
} else { |
143 | 143 |
url = f.toURI().toURL(); |
144 | 144 |
} |
Also available in: Unified diff