So, within the directory containing my GWT application, I can type in the console
ant devmode
And it will start up my GWT application as per usual. So far so good.
However, what if wish to specify the port as a dynamic argument when starting devmode. Something conceptually like:
ant devmode port=8821
Or am I supposed to pass in some system variable to GWT? What is the convention for this?
Thanks.
Passing an argument via ant can be done via the ant properties. The call would be:
In your ant file specify a property port. The default value will be overridden when you pass the argument via the command line:
And in the ant location where you want to use the property, use it as follows:
Update: fixed syntax, as suggested by Stephen, of property to make this example correct.