I want to use GradleConnector to execute an integration test. Also I have tasks, which are using the cool command line parameter api (org.gradle.api.internal.tasks.options.Option), e.g.
@Option(option=‘host’, description=‘host to be configured’)
public void setHost(String host) { … }
I tried to use BuildLauncher#withArguments() to parameterize those tasks, but that didn’t work. I am only getting a CommandLineArgumentException: Unknown command-line option ‘–host’
Yes I know - but like and need this features very much and never had a problem with it. Looking forward to getting it as official one
Thank you for your example. This use case works for me, as well - normal – parameters - but the ones which come to build with @Option didn’t work for me this way.
I was running the test with gradle 2.0 as well as with 2.1
Are these options not supported in GradleConnector in the end?