private void cleanUp(){
  try {
    File file=new File(System.getProperty("user.dir"));
    String[] links=file.list();
    for (    String name : links) {
      File potentialSymLink=new File(file,name);
      if (FileUtils.isSymlink(potentialSymLink)) {
        if (logger.isDebugEnabled()) {
          logger.debug("DELETING: " + potentialSymLink);
        }
        potentialSymLink.delete();
      }
    }
  }
 catch (  Exception e) {
    logger.warn("Failed to remove symlinks",e);
  }
}

private void cleanUp ( ) { try { File file = new File ( System . getProperty ( "user.dir" ) ) ; String [ ] links = file . list ( ) ; for ( String name : links ) { File potentialSymLink = new File ( file , name ) ; if ( FileUtils . isSymlink ( potentialSymLink ) ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "DELETING: " + potentialSymLink ) ; } potentialSymLink . delete ( ) ; } } } catch ( Exception e ) { logger . warn ( "Failed to remove symlinks" , e ) ; } }
will clean up symlinks that were created by a launch script
