문제

Is it possible to use a variable for the port in the "Wait for http port" Action?

도움이 되었습니까?

해결책

As of install4j 5.1.x, this is not possible. You change it with a code snippet, though. Add a "Run script" action with the script

import com.install4j.runtime.beans.actions.control.*;

int port = (Integer)context.getVariable("myPort");
((WaitForHttpPortAction)context.getActionById("123")).setPort(port);

return true;

This assumes that you have saved an integer port value to the installer variable "myPort". You have to replace "123" with the actual ID of the "Wait for http port" action.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top