Closed aldonogueira closed 5 years ago
Hi,
I implemented a simple execute cli command task, part of the latest 0.2.8
version:
import com.mkring.wildlydeplyplugin.ExecuteWildflyTask
[...]
task("wildflyExecute", ExecuteWildflyTask::class) {
host = "127.0.0.1"
port = 9990
user = "testuser"
password = "123"
commands = listOf("deployment-info", "deployment-info")
}
Does it work for you?
It works nicely, sir (or lady). I have just deleted all remaining maven files \o/ Thank you
Notice though that the correct groovy example should be
import com.mkring.wildlydeplyplugin.ExecuteWildflyTask
task executeCommands(type: ExecuteWildflyTask) {
host = "127.0.0.1"
port = 9990
user = "testuser"
password = "123"
commands = ["deployment-info", "deployment-info"]
}
Thanks for the groovy example hint, I didn't test it before putting it into the readme... :) You're welcome 👍
This is the last thing I need from DeployWildflyTask to remove the maven files from my build.
I have this fragment on my pom.xml
And the config.cli file has something like this
This is the goal used in my build:
https://docs.jboss.org/wildfly/plugins/maven/latest/execute-commands-mojo.html