How can I exclude the list of files (stored in a file) from the Ant file set?

Is there a way for the Ant Fileset-> IncludesFile attribute to take a properties file or any other file containing a list of Java class files to exclude?

For example:

A.properties OR A.java file contains a list

abc.class 
mno.class 
xyz.class 

Is it possible to specify the excludesFile clause for the A.properties file.

<fileset dir="...">
    <excludesFile file="A.properties" />
</fileset>

The behavior I want is when Java works, it excludes the Java files listed in this file (A.properties)

+3
source share
1 answer

... , . http://ant.apache.org/manual/Types/fileset.html "excludesfile", , ant.

, . , , , , "excludesfile" - .

+3

Source: https://habr.com/ru/post/1707438/


All Articles