Setting httpPort for Jetty Grails plugin -


i want change httpport default of 8080 jetty grails plugin. cannot set jetty httpport property via system property and/or gradle property.

system property: gradle jettyrun -djettyhttpport=9090 gradle property (gradle.properties): jettyhttpport=9090 

right have make change gradle build script (like adding configuration task) make work. there jettypluginconventions function sethttpport(int) not know how implement it.

http://www.gradle.org/releases/1.0-milestone-3/docs/javadoc/org/gradle/api/plugins/jetty/jettypluginconvention.html#sethttpport(java.lang.integer)

http://www.gradle.org/jetty_plugin.html

i had same problem, , documentation gradle general , vague. think gradle developers able full potential of great tool :)

right way add following gradle build script:

jettyrun {     httpport = 9000 } 

it looks cannot set value in command line. there issue that, gradle-1224, closed "won't fix" because

the jetty plugin has been deprecated , scheduled removed gradle 4.0. not going work on issue anymore.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -