Changeset 749 for trunk/java-utils
- Timestamp:
- 09/03/12 10:38:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-utils/src/main/java/de/ugoe/cs/util/console/CommandExecuter.java
r731 r749 245 245 } 246 246 else { 247 resource.getFile().startsWith("file:");248 247 int index = resource.getFile().lastIndexOf('!'); 249 248 if ((index > 0) && (resource.getFile().startsWith("file:")) && … … 256 255 try { 257 256 jarInputStream = new JarInputStream(new FileInputStream(jarFile)); 257 JarEntry entry = null; 258 do { 259 entry = jarInputStream.getNextJarEntry(); 260 if ((entry != null) && (!entry.isDirectory()) && 261 (entry.getName().startsWith(path))) 262 { 263 String className = entry.getName().substring 264 (path.length(), entry.getName().lastIndexOf('.')); 265 classNames.add(packageName + "." + className); 266 } 267 } 268 while (entry != null); 258 269 } 259 270 catch (Exception e) { … … 262 273 jarFile); 263 274 } 264 265 JarEntry entry = null; 266 do { 267 entry = jarInputStream.getNextJarEntry(); 268 if ((entry != null) && (!entry.isDirectory()) && 269 (entry.getName().startsWith(path))) 270 { 271 String className = 272 entry.getName().substring(path.length(), 273 entry.getName().lastIndexOf('.')); 274 classNames.add(packageName + "." + className); 275 finally { 276 if (jarInputStream != null) { 277 jarInputStream.close(); 275 278 } 276 279 } 277 while (entry != null); 280 278 281 } 279 282 }
Note: See TracChangeset
for help on using the changeset viewer.