[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Graphic Installer for Messaging

vladimir.ralev@jboss.com do-not-reply at jboss.com
Tue Mar 13 09:13:54 EDT 2007


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/jboss-messaging.sar/hsqldb-persistence-service.xml.vm

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/userInputSpec.xml.  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#4027527

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027527



More information about the jboss-dev-forums mailing list