public void normalizeOutdir(){
  if (outputDir != null)   return;
  File destDir;
  if (destinationDir != null) {
    if (packageName == null) {
      destDir=destinationDir;
    }
 else {
      String path=packageName.replace('.',File.separatorChar);
      destDir=new File(destinationDir,path);
    }
  }
 else {
    destDir=new File(inputFile.getParent());
  }
  setOutdir(destDir);
}

public void normalizeOutdir ( ) { if ( outputDir != null ) return ; File destDir ; if ( destinationDir != null ) { if ( packageName == null ) { destDir = destinationDir ; } else { String path = packageName . replace ( '.' , File . separatorChar ) ; destDir = new File ( destinationDir , path ) ; } } else { destDir = new File ( inputFile . getParent ( ) ) ; } setOutdir ( destDir ) ; }
sets the actual output directory if not already set . uses javac logic to determine output dir = dest dir + package name if not destdir has been set , output dir = parent of input file assumes that package name is already set .
