I'm wondering whether it is possible to exclude several source files from a folder included with src.dir = ...
in build.properties
Regards
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With