private File resolveBasedir ( ) throws IOException { String path = null ; if ( project != null ) { File file = project . getBasedir ( ) ; if ( file != null ) { path = file . getAbsolutePath ( ) ; } } if ( path == null ) { path = session . getExecutionRootDirectory ( ) ; } if ( path == null ) { path = System . getProperty ( "user.dir" ) ; } return new File ( path ) . getCanonicalFile ( ) ; }
Resolves the base directory for the current execution .