private void addSourceRoot ( final File directory ) { if ( this . project != null ) { getLog ( ) . debug ( "Adding compile source root: " + directory ) ; this . project . addCompileSourceRoot ( directory . getAbsolutePath ( ) ) ; } }
Registers the specified directory as a compile source root for the current project .