Friday, June 27, 2008

File finder

I work on a software product where my responsibility is to hunt down bugs, fix and test them. In this proces, I face a tough time locating a (java) class in my file system, especially when it gets bundled as an archive with a ".jar" extension. Windows searches for entries in archives that have ".zip" extension but ignores java libraries(".jar"). So, I wrote a code to search for a class file in a java archive. Later enhanced the code to recursively search through sub-directories, looking for file. Basically, this code could be used to search for any file. Being in the infant stages, this code just accepts files with exact names and not with wild card characters.

Though I am interested in sharing the code with everyone, I have no clue about uploading the source code in the blogger. Any help would be appreciated.

No comments: