| Hello Glen, sorry for the late reply. You can pass properties from the commandLine to your run task by using a bit groovy: You can dynamically add args to the run task: ---------------- run{ if(project.hasProperty("appProp")){ args appProp } } ---------------- this checks if a property named "appProp" is defined. If true, it passes the property to the arg method of the run task. Now you can run your app via gradle from the commandline: ---------- gradle run -PappProp=test ---------- regards René
|
- [gradle-user] Gradle application plugin question Glen Stampoultzis
- Re: [gradle-user] Gradle application plugin questio... Rene Groeschke
- Re: [gradle-user] Gradle application plugin que... Glen Stampoultzis
- [gradle-user] Re: Gradle application plugin... Philippe Lhoste
- Re: [gradle-user] Gradle application plugin... Rene Groeschke
- [gradle-user] Re: Gradle application pl... Philippe Lhoste


