FileDocCategorySizeDatePackage
_TestUtil.javaAPI DocApache Lucene 2.1.0516Wed Feb 14 10:46:36 GMT 2007org.apache.lucene.util

_TestUtil

public class _TestUtil extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidrmDir(java.io.File dir)

    if (dir.exists()) {
      File[] files = dir.listFiles();
      for (int i = 0; i < files.length; i++) {
        if (!files[i].delete()) {
          throw new IOException("could not delete " + files[i]);
        }
      }
      dir.delete();
    }
  
public static voidrmDir(java.lang.String dir)

    rmDir(new File(dir));