由于目前工作的開發(fā)工具是eclipse,而且使用的是rational clearcase remote client 來維護(hù)軟件版本。
但是每次編譯完項(xiàng)目工程以后就會(huì)出現(xiàn)下面的錯(cuò)誤。
Severity and Description Path Resource Location Creation Time Id
The project was not built due to "Internal error - the selected file is a system file that cannot be modified. It will be hidden.". Fix the problem, then try refreshing this project and building it since it may be inconsistent.
最后找來找去,原因是project目錄下面有個(gè)target-eclipse目錄,這個(gè)target-eclipse文件夾下的.copyarea.db惹得禍。
這個(gè)文件是clearcase的一個(gè)隱藏只讀文件,放在target-eclipse一點(diǎn)用處都沒有,所以決定把它從target-eclipse目錄里刪除。注意只刪除target-eclipse目錄下的.copyarea.db即可,不需要?jiǎng)h除整個(gè)工程下的其他目錄里的.copyarea.db文件即可,然后在elipse里刷新工程。就可發(fā)現(xiàn)這個(gè)錯(cuò)誤消失了。
最有效的方法是打開Eclipse->Windows->Preferences->Java->Compiler->Building
打開這個(gè)界面后:在Filtered Resources: 的編輯框內(nèi)加入:*.launch,.copyarea.db
這樣就不會(huì)再出現(xiàn)上述的問題了。