Dynamic tasks based on external configuration file

We have configuration in xml which describes set of applications and database need to be deployed. Based on the file, I can create task necessary to perform. I want to encapsulate this logic in custom plugin. What is unclear, how can I provide path to this xml file to plugin? If I use extension (ext.xml=’…’), it should be done before plugin is applied, right? So if someone move ext.xml=’ ’ assignment after apply plgin in build script, it will not work. Are any alternatives how to hook after all plugins are applied but before execution phase is started

It’s a common question, and answers can be found by searching this forum. A simple (but limited) solution is to use a ‘project.afterEvaluate’ hook.

Thank you!