Exclude directories & subdirectories from validation in Eclipse

后端 未结 4 1329
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 13:47

How do I exclude a folder AND its sub-directories from validation in eclipse? I know that you can right click on a folder in Package Explorer and select Exclude Validation,

4条回答
  •  盖世英雄少女心
    2020-12-01 14:18

    I think the best way is:

    • Right click the project
    • Properties
    • Java Build Path
    • "Source" tab
    • Select the folder that contains the file you want to exclude
    • Click the button "Edit..."
    • Next button
    • In the "Exclude patterns" Click "Add..." button
    • Add your filter

    The filter can be a single file or multiple files.

提交回复
热议问题