protected void addSourceFolder ( String path ) { final List < String > existingFolders1 = this . project . getCompileSourceRoots ( ) ; final List < String > existingFolders2 = this . project . getTestCompileSourceRoots ( ) ; if ( ! existingFolders1 . contains ( path ) && ! existingFolders2 . contains ( path ) ) { getLog ( ) . info ( MessageFormat . format ( Messages . InitializeMojo_0 , path ) ) ; this . session . getCurrentProject ( ) . addCompileSourceRoot ( path ) ; } else { getLog ( ) . info ( MessageFormat . format ( Messages . InitializeMojo_1 , path ) ) ; } }
Add a source folder in the current projecT .