decades
decades

Reputation: 837

Android: build.properties exclude

I'm wondering whether it is possible to exclude several source files from a folder included with src.dir = ... in build.properties

Regards

Upvotes: 5

Views: 3106

Answers (1)

Dante WWWW
Dante WWWW

Reputation: 2739

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 both the file name and a pattern that matches multiple files.

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

When you read this page, pay attention to and selectors too.

Upvotes: 2

Related Questions