• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            牽著老婆滿街逛

            嚴(yán)以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            eclipse的項目和配置文件 .project .cproject .classpath .metadata

            轉(zhuǎn)載自:http://www.cnblogs.com/shangdawei/p/3457413.html

            eclipse CDT建立project后在project name對應(yīng)的目錄下面會生成.project和.cproject兩個隱藏文件。

            eclipse  java建立project后在project name對應(yīng)的目錄下面會生成.project和.classpath兩個隱藏文件。

            .project文件大小2~3K Bytes , 該文件是針對eclipse的project Description ,

            .cproject文件大小是10~12K  Bytes,該文件是針對CDT插件的project Description ,

            .classpath文件大小有1~3 M Bytes , 該文件是針對java插件的project Description,

            .project和 .cproject  ,  .classpath都是XML文件格式。

            .project和 .cproject  ,  .classpath 存在于project name對應(yīng)的目錄下,

            .metadata是一個隱藏文件夾,它存在于eclipse第一次啟動時指定的workspace目錄下,

            project name 和 workspace 分別對應(yīng)的目錄不能是同一個目錄,否則無法建立project name。

            當(dāng)把project name( project name實際上就是直接產(chǎn)生.project) 建立在已存在source code 的目錄時,

            即表示該project name代表的project自動包含該目錄下的所有source code。

            eclipse cdt 的索引數(shù)據(jù)庫文件名后綴是.pdom ,保存在.metadata/.plugins/org.eclipse.cdt.core目錄下,

            比如kernel_0715.1316773656364.pdom , uboot-0715.1316772863625.pdom ,其大小很可觀,從幾十M 到幾百M(fèi) ,甚至1G Bytes。

            索引數(shù)據(jù)庫文件名格式一般是 [Project-Name].[Random-Number].pdom。

            eclipse java 的index 數(shù)據(jù)庫在.metadata/.plugins/org.eclipse.jdt.core目錄下,和eclipse cdt不同,這個目錄下索引文件太多了。


            對一個 Workspace 配置的備份其實就是備份 Workspace 的配置目錄 .metadata。 

            eclipse-java 在Project > Properties >  Java Build Path > source下增減項目中的文件夾

             

            今天下午遇到一個問題,Eclipse在某一個Workspace上啟動CPU占用率就會是100%,

            我懷疑是前兩天反編譯生成的一個源代碼工程錯誤太多導(dǎo)致,

            所以想在workspace里找到工程的配置文件然后把它刪除。   經(jīng)過一番嘗試后發(fā)現(xiàn)它存在: 

            d:\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects

            下面。  把想要去掉的工程在這里面刪除就可以了,這樣workspace又可以正常啟動了。

             

             

            昨天重裝下機(jī)器,由于Eclipse里面的設(shè)置讓我改的亂七八糟。提示功能沒有了,快捷鍵也給改錯了(可以使用,使用后必須按下方向鍵向左箭頭),而我又不知道怎么把他改回來。

                重裝系統(tǒng)后,安裝Eclipse,然后按照找來的文章改快捷鍵,發(fā)現(xiàn)快捷鍵已經(jīng)被改過了?!?。。hy?思考過后,發(fā)現(xiàn),除了每次裝Eclipse后第一次開啟Eclipse時指定的文件夾一樣外,其他都不一樣,那好,就在那個文件夾找原因。不管是學(xué)校還是家里,Eclipse指定文件夾內(nèi)肯定會有一個.metadata文件夾,那可能就是我想找到的原因。把這個文件夾里所有內(nèi)容刪掉(先關(guān)Eclipse),然后再重新啟動Eclipse后發(fā)現(xiàn),所有配置都被還原成默認(rèn),Eclipse中項目表也沒有任何項目,哈,看來Eclipse內(nèi)所有改動都放在這個文件夾。又學(xué)了一手,按照上一篇文章修改快捷鍵后,運(yùn)行正常。OK。

                以后Eclipse再有問題,可以直接把.metadata文件夾刪除了,在進(jìn)行修改?;貋碓傺芯垦芯窟@個文件夾保存的一些相關(guān)文件都是什么。

             

             

            Eclipse:如何在不同的 workspace 使用相同設(shè)定

            在 Eclipse 中我們可以透過切換 workspace 來區(qū)分不同的工作,
            但又只保留一份 Eclipse 的程式以節(jié)省空間。
            不過也因為 workspace 的設(shè)定檔是分開的,
            所以當(dāng)我們新增一個workspace時,常常會發(fā)現(xiàn)字型、排版等也都跑掉了,
            如果要一一重設(shè)非常麻煩,那麼要怎麼樣才能在不同的 workspace 使用相同設(shè)定呢?
            請見以下流程。

            步驟很簡單,條列如下:

              1. 關(guān)掉 Eclipse
              2. 找到舊的 workspace 的設(shè)定檔資料夾,路徑在:${old_workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings
              3. 複製整個資料夾,在新的 workspace 貼上並覆蓋,路徑在:${new_workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings
              4. 啟動 Eclipse 並切換至新 workspace,設(shè)定是不是都回來了呢?

             

            Sharing eclipse specific settings across workspaces:

            1. Go t ${old_workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings
            2. Copy everything under the above directory to ${new_workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings

            This is going to make sure that the ${new_workspace} is having the same configuration as the ${old_workspace}

            Hope this helps. Update in case of any issues.

             

            Another option is export/import:

            1. From your existing workspace, File->Export...->General->Preferences, check Export all, and choose file to save them to (prefs.epf for example)
            2. Startup Eclipse in a new workspace, File->Import...->General->Preferences , choose your file (prefs.epf), check import all

            That worked great for the original author of this tip: he had his code formatting, code style, svn repos, jres preferences imported.

            Edit: On Eclipse Juno this works poorly. Some preferences silently do not carry over such as save actions.

             

            Clean out Eclipse workspace metadata

            http://stackoverflow.com/questions/11768106/clean-out-eclipse-workspace-metadata

            There is no easy way to remove the "outdated" stuff from an existing workspace. 
            Using the "clean" parameter will not really help, as many of the files you refer to are "free form data", 
            only known to the plugins that are no longer available.

            Your best bet is to optimize the re-import, where I would like to point out the following:

            • When creating a new workspace, you can already choose to have some settings being copied from the current to the new workspace.
            • You can export the preferences of the current workspace (using the Export menu) and re-import them in the new workspace.
            • There are lots of recommendations on the Internet to just copy the
              ${old_workspace}/.metadata/.plugins/org.eclipse.core.runtime/.settings folder from the old to the new workspace. 
              This is surely the fastest way, but it may lead to weird behaviour, because some of your plugins may depend on these settings 
              and on some of the mentioned "free form data" stored elsewhere. 
              (There are even people symlinking these folders over multiple workspaces, but this really requires to use the same plugins on all workspaces.)
            • You may want to consider using more project specific settings than workspace preferences in the future. 
              So for instance all the Java compiler settings can either be set on the workspace level or on the project level. 
              If set on the project level, you can put them under version control and are independent of the workspace.

            posted on 2016-02-25 10:06 楊粼波 閱讀(5306) 評論(0)  編輯 收藏 引用


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            久久se精品一区二区影院| 狠狠人妻久久久久久综合| 狠狠色婷婷久久综合频道日韩| 97精品伊人久久大香线蕉| 国产产无码乱码精品久久鸭| 亚洲一本综合久久| 三级片免费观看久久| 精品久久久久久无码专区不卡| 伊人久久免费视频| 囯产极品美女高潮无套久久久 | 久久精品毛片免费观看| 久久99热精品| 中文字幕日本人妻久久久免费 | 久久久久久精品久久久久| 国产午夜免费高清久久影院 | 品成人欧美大片久久国产欧美| 四虎久久影院| 久久精品无码一区二区三区日韩| 麻豆一区二区99久久久久| 久久人人青草97香蕉| 久久久久无码精品| 99久久亚洲综合精品成人| 久久国产精品99精品国产| 国产精品久久久久久久久软件| 久久精品国产第一区二区| 久久婷婷综合中文字幕| 国产午夜精品理论片久久影视| 无码超乳爆乳中文字幕久久| 亚洲国产香蕉人人爽成AV片久久| 久久国产热这里只有精品| 亚洲综合精品香蕉久久网97| 99久久99久久久精品齐齐| 久久人人爽爽爽人久久久| 久久亚洲sm情趣捆绑调教| 久久伊人影视| 中文字幕久久精品| 久久久久精品国产亚洲AV无码 | 亚洲日本va午夜中文字幕久久 | 久久黄色视频| 久久国产精品波多野结衣AV| 精品久久久久久久久久中文字幕 |