bmuschko / gradle-cargo-plugin

Gradle plugin that provides deployment capabilities to local and remote containers via Cargo
Apache License 2.0
258 stars 63 forks source link

Split Out Local Install And Run To Different Tasks #173

Open opticyclic opened 5 years ago

opticyclic commented 5 years ago

Related to https://github.com/bmuschko/gradle-cargo-plugin/issues/172

When running cargoStartLocal there no option to modify any files in between the install and configuration of the local container and the running of it.

If the task was split in two, e.g. cargoInstallLocal and cargoStartLocal you could run commands after the container has installed and before it starts.

Using the names above would break comparability with previous versions though unless a flag could be added to control whether cargStartLocal needed to deploy before starting or not.

bmuschko commented 5 years ago

I guess you could use cargoStartLocal.doFirst { ... } without having to change the code of the plugin.

opticyclic commented 5 years ago

That won't have copied the structure yet though will it?

bmuschko commented 5 years ago

I think you are right. I am not sure if the CargoConfigureLocal task does what you want. You might want to try that out. If it doesn't help then there's likely no support for it as part of the existing Cargo Ant tasks.