I have got a Ant xml that does some things in my environment. In my xml there are some variables eg: paths and etc, that I set them manually ever I execute it, but I have to change the value in the variable manually ever time that change something in my environment. I'd like to do this dynamically.
<property name="xxx" value="C:/xxx" />
I'd like to know, if is possible I set them dynamically through of a web interface.
I have a web interface with some fields, I type some values in this fields and pass to a variable in my servlet. Then, I get the values those variables that I set in my servlet and forwards to my xml Ant, to set xml Ant variables.
So you want a servlet to directly run Ant? If so, you could have the servlet set the properties as part of the ant command to run.
Another possibility: most of this functionality is already built into Jenkins. Yes, Jenkins is a Continuous Integration tool, but in realty it is just a web interface that you can use to manually or automatically run scripts (and that includes ant script).