public string GetParent ()
{
string p = Path.GetDirectoryName (path);
if (string.IsNullOrEmpty(p) || p == path)
return null;
else
return p;
}
private FilePath GetOutputFile(FilePath parentDir, string className) { string path = className.Replace('.', FilePath.separatorChar); path = System.String.Concat(path, ".class"); FilePath f = new FilePath(parentDir, path); string dirPath = f.GetParent(); if (dirPath != null) { FilePath dir = new FilePath(dirPath); if (!dir.Exists()) { dir.Mkdirs(); } } return f; }