Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19870

Lazy evaluation of properties

$
0
0

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.


Viewing all articles
Browse latest Browse all 19870

Trending Articles