eclipse存储源排除

时间:2016-01-21 15:16:38

标签: eclipse

我通过以下方式在我的eclipse项目中进行排除:

Right-click a project folder in Project Explorer tree and go to "Properties".
Resource -> Resource Filters.
Add as much exclusion filters for files/folders as you like.

但Eclipse存储这些刺痛的地方?

1 个答案:

答案 0 :(得分:1)

过滤器存储在.project条目中项目的filteredResources文件中。

例如:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>

    ... other things ...

    <filteredResources>
        <filter>
            <id>1453390382837</id>
            <name></name>
            <type>5</type>
            <matcher>
                <id>org.eclipse.ui.ide.multiFilter</id>
                <arguments>1.0-name-matches-false-false-xxx</arguments>
            </matcher>
        </filter>
    </filteredResources>
</projectDescription>

注意:您不应尝试直接更改.project文件。 IContainer类具有插件可用于更改过滤器的方法。