Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: build.properties exclude

Tags:

android

build

ant

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

Regards

like image 535
decades Avatar asked Nov 04 '22 18:11

decades


1 Answers

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.

like image 189
Dante WWWW Avatar answered Nov 11 '22 10:11

Dante WWWW