generateContractSources

fun generateContractSources(contracts: List<File>, contractPackages: List<File>, classpath: List<File>, output: File, resources: File): Int

Writes the Kotlin sources generated from the api module's contracts (none, or the one assembleWowContract wrote) under output, which it clears first (ContractSources): the <Context>Contracts, each in its context's package in contractPackages (the files ContractPackages the domain modules wrote), and the views of the states, which reference the classes of the classpath the code compiles against; with wow-query-api on it, the query field constants of the states too. The views' binary names go to PeerContracts.STATE_VIEWS_RESOURCE under resources, which it clears first too, one a line, sorted; with no view, no file. What the Gradle plugin's generateWowContractSources does. Returns the number of sources written.