private void copyBaseDirs ( File [ ] baseDirs ) { this . baseDirs = new File [ baseDirs . length ] ; for ( int i = 0 ; i < baseDirs . length ; i ++ ) { this . baseDirs [ i ] = baseDirs [ i ] . getAbsoluteFile ( ) ; } }
Convert the dirs to absolute paths to prevent that equals returns true for directories with the same name in a different location .