It's simple if you know the names and the possible values of the variables that
contain user input data. For example we generate the hsqldb-persistence-service.xml with
the velocity template
http://anonsvn.jboss.org/repos/installer/jems-installer/trunk/templates/j...
based on the $database variable. (Even though the file name remains
"hsqldb-persist.." the contents are overwritten.)
The $database variable (and most other variables) are being created and assigned in the
user input panels defined here
http://anonsvn.jboss.org/repos/installer/jems-installer/trunk/userInputSp.... Here we
define the forms and the controls (each control is mapped to some variable).
Once the user fills out the forms in the panels (all variables set), during the file-copy
phase the .vm templates are processed.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027527#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...