Execute script after installation in izpack

拈花ヽ惹草 提交于 2019-12-10 20:22:07

问题


I have made jar file which contanins jboss and I want to start my web application when jar extracts and installed completly on my machine. where should i write script or code or xml tag in izpack so that after installing the application standalone.sh run automatically and my jboss run in the background and my application deployed successfully


回答1:


Just in case somebody stumbles upon this thread as i just did:

You can include an "executable" element in your install "pack" element which will execute as custom script: izpack documentation




回答2:


You can use <executable> tags in your pack definitions to specify which files are executables. The key is to have stage="postinstall" attribute so izpack executes the file after installation is complete and to set keep="true" so izpack does not remove it.

For example:

<executable targetfile="$INSTALL_PATH/bin/some-secript"
                 os="unix" stage="postinstall" failure="warn" keep="true"/>

documentation




回答3:


You need to create a ProcessPanel.Spec.xml file for the IzPack Process Panel. Look here for the official documentation.



来源:https://stackoverflow.com/questions/19721717/execute-script-after-installation-in-izpack

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!