Gradle version 6.3.3
Gradle distribution plugin.
The source folder has a working prunsrv.exe file.
After executing the Gradle distZip task it has created myproject.zip file.
Extracted the zip file. And tried to run the prunsrv.exe file and it is not working.
Actually, I used filter() method to replace the place holders in script file.
This gradle filter() method has corrupted the exe file after running the gradle build.