Reputation: 2819
I have created a installer to Deploy my web application on JBoss server what I does as follows
Files
Launcher
In this section I have created two launchers
Installer
here I have added 3 Action
when I run the installer then every thing works fine and it will start my JBoss to but problem is JBoss by default run on port 8080 thus if this port in use then it will not start my JBoss server now what I wanted to do is that
Upvotes: 1
Views: 346
Reputation: 48035
You can ask the user for the port value with a configurable form:
Select the installer node, and click on the add button, then on "Add screen" and choose the "Configurable form".
Add a "Text field with integer format" form component to ask for the port. The form component saves the user input to an installer variable, say to "jbossPort".
Use a "Replace text in XML files" action to change the port in the XML configuration file of JBoss. The port value is referenced like this: ${installer:jbossPort}, it is also available from the variable chooser (small arrow next to all text fields, select "Insert installer runtime varaiable", then select the "Bound variables" tab).
Upvotes: 3