| 77 | | if(endIdx != -1){ |
|---|
| 78 | | String unescaped = null; |
|---|
| 79 | | String fileNamePart = stringForm.substring("jar:file:".length(), endIdx); |
|---|
| 80 | | file = new File(fileNamePart); |
|---|
| 81 | | if ( ! file.exists()) { |
|---|
| 82 | | // try to unescape encase the URL Handler has escaped the " " to %20 |
|---|
| 83 | | unescaped = unescape(fileNamePart); |
|---|
| 84 | | file = new File(unescaped); |
|---|
| 85 | | } |
|---|
| 86 | | return file; |
|---|
| 87 | | } |
|---|
| 88 | | throw new RuntimeException("Failed expanding Jar."); |
|---|
| | 86 | if( endIdx == -1 ) { |
|---|
| | 87 | throw new RuntimeException("Failed expanding Jar."); |
|---|
| | 88 | } |
|---|
| | 89 | String unescaped = null; |
|---|
| | 90 | String fileNamePart = stringForm.substring("jar:file:".length(), endIdx); |
|---|
| | 91 | file = new File(fileNamePart); |
|---|
| | 92 | file = new File( file.getName() ); |
|---|
| | 93 | |
|---|
| | 94 | /* |
|---|
| | 95 | if ( !file.exists()) { |
|---|
| | 96 | // try to unescape encase the URL Handler has escaped the " " to %20 |
|---|
| | 97 | unescaped = unescape(fileNamePart); |
|---|
| | 98 | file = new File(unescaped); |
|---|
| | 99 | } |
|---|
| | 100 | */ |
|---|
| | 101 | return file; |
|---|
| | 102 | |
|---|