Android: build.properties exclude

I am wondering if it is possible to exclude several source files from the folder included src.dir = ...in build.properties

Hi

+5
source share
1 answer

You can write like this:

<fileset dir="${src.dir}">
    <exclude name="your-file-name-or-pattern"/>
    <include name="your-file-name-or-pattern"/>
</fileset>

The name attribute accepts a file name and a pattern that matches multiple files.

For more information on this, see: http://ant.apache.org/manual/Types/fileset.html

When you read this page, pay attention to selectors.

+2
source

All Articles