@param folder source folder to search @return a list of .jar and .zip files in that folder
(File folder)
| 440 | * @return a list of .jar and .zip files in that folder |
| 441 | */ |
| 442 | static public File[] listJarFiles(File folder) { |
| 443 | return folder.listFiles(new FilenameFilter() { |
| 444 | public boolean accept(File dir, String name) { |
| 445 | return (!name.startsWith(".") && |
| 446 | (name.toLowerCase().endsWith(".jar") || |
| 447 | name.toLowerCase().endsWith(".zip"))); |
| 448 | } |
| 449 | }); |
| 450 | } |
| 451 | |
| 452 | |
| 453 | ///////////////////////////////////////////////////////////////////////////// |
no test coverage detected