When you checkout a repository from subversion it creates a .svn directory (with subdirectories) for every directory (and subdirectory) checked out. The .svn directory contains information about the repository and files in the directory and allows you to run svn commands without having to authenticate yourself in future. However when you want to package the source code it becomes painful to remove them by hand. You can either use a build tool like ant and exclude the .svn directories or you can use my code to clean the directory of .svn junk.

Download SVNClean here.

Usage:
java SVNClean [list of files or directories]

The code runs on any java supported platform (tested on windows and linux).

Use at your own risk. No warranty, implied or otherwise, is provided.