You don’t need to configure the args
of your createDatabase
task at configuration time. You can create a task such as configureDatabase
that reads the properties file created by createClient
and sets the args
value of createDatabase
during the execution phase.
Alternatively, you could create a class that implements CommandLineArgumentProvider to load the property file and provide the appropriate argument. The execution of this logic should be deferred until the createDatabase
task actually requires it.