I am looking for a help in filtering some source files from the source project before building the project.
The scenario is as follow: I have a list of files that I want to exclude from the build. Hence, I am looking for a solution where I can create a custom task within Gradle that takes as input the list of file that I want to filter. Afterward, the build task should use the filtered source directory to build the project. I want this custom task to be activated while copying the source project. Meaning, while copying the project from the SVN or any directory, the custom filtering command should be activated.
Can you please help me or advice on the possible direction to solve this issue.