尝试在 Jacl 脚本中运行以下命令(在此调用之前已设置 $APPNAME):
$AdminApp install $EARFILE {-nopreCompileJSPs -distributeApp -nouseMetaDataFromBinary -nodeployejb -verbose -appname $APPNAME -createMBeansForResources -noreloadEnabled ...}
我收到以下错误。
WASX7017E: Exception received while running file "deploy_myk.jacl"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7108E: Invalid data specified for install task: "AppDeploymentOptions."
Errors are:
"ADMA0085E: A validation error occurred in task Specifying application options. Application name, $APPNAME, is not valid.
An application name cannot begin with a dot, cannot have leading or trailing spaces, cannot contain "]]>", and cannot contain any of the following characters: \ / , # $ @ : ; " * ? < > | = + & % '"
我似乎无法找到说明在“选项”说明符字符串中使用脚本变量的文档。显然,必须有某种方法来做我想做的事情,即在脚本运行时部署一个我选择的名称的 EAR 文件