public static File getPathtoProject ( final File filename , final File traceFilename , final File inputMap , final Job job ) { if ( job . getGeneratecopyouter ( ) != Job . Generate . OLDSOLUTION ) { if ( isOutFile ( traceFilename , inputMap ) ) { return toFile ( getRelativePathFromOut ( traceFilename . getAbsoluteFile ( ) , job ) ) ; } else { return getRelativePath ( traceFilename . getAbsoluteFile ( ) , inputMap . getAbsoluteFile ( ) ) . getParentFile ( ) ; } } else { return FileUtils . getRelativePath ( filename ) ; } }
Get path to base directory