1

H、

インストール中にユーザー入力を取得し、それを processPanle で実行されるアプリケーションの引数として使用する必要があります。processPanel でユーザー入力を含む変数を取得するにはどうすればよいですか?

4

1 に答える 1

2

${}次の例に示すような構文を使用して、変数を参照できます。

userInputSpec.xml(スニペット):

<field type="rule" variable="tomcat_http_port">
  <spec txt="HTTP-Port:" id="panel0.field2.label" set="0:80" layout="N:5:5" />
</field>

process.xml(スニペット):

<job name="Launching Browser">
 <executeclass name="edu.ccdb.util.BareBonesBrowserLauncher">
   <arg>http://localhost:${tomcat_http_port}/klaros-web</arg>
 </executeclass>
</job>
于 2012-10-02T11:56:19.117 に答える