Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在运行时运行startManagedWebLogic.cmd后,如何传递ant的exec任务中询问的用户名和密码?_Ant_Weblogic9.x - Fatal编程技术网

在运行时运行startManagedWebLogic.cmd后,如何传递ant的exec任务中询问的用户名和密码?

在运行时运行startManagedWebLogic.cmd后,如何传递ant的exec任务中询问的用户名和密码?,ant,weblogic9.x,Ant,Weblogic9.x,如何通过ANT脚本传递运行时运行此ANT脚本后询问的用户名和密码?查看startManagedWebLogic.sh文件本身: 设置WLS_USER等于您的系统用户名,WLS_PW等于您的系统密码,以便在服务器启动期间无用户名和密码提示。这两者都是绕过启动提示所必需的 旁路提示部分还介绍了其他方法: 您可以设置boot.properties文件或添加java选项: <target name="startmanaged" description="Start Managed Server"&

如何通过ANT脚本传递运行时运行此ANT脚本后询问的用户名和密码?

查看startManagedWebLogic.sh文件本身:

设置WLS_USER等于您的系统用户名,WLS_PW等于您的系统密码,以便在服务器启动期间无用户名和密码提示。这两者都是绕过启动提示所必需的

旁路提示部分还介绍了其他方法:

您可以设置boot.properties文件或添加java选项:

<target name="startmanaged" description="Start Managed Server">
   <if>
      <equals arg1="${server-host}" arg2="localhost" />
          <then>
            <echo message="__________  Check Weblogic" />
            <if>
              <available file="${weblogic}"/>
                <then>
                   <echo message="Weblogic server found" />
           <echo message="__________ Starting managed Weblogic server" />
            <property name="weblogic.console" value="http://${host}:${port}/console"/>
                <exec dir="${weblogic.domain.dir}/bin" executable="cmd.exe" failonerror="true">
                      <arg line="/C ${weblogic.domain.dir}/bin/${start-managed-server} ${server1} ${adminURL}"/>
                 </exec>
                </then>
              <else>
                  <fail message="No Weblogic server has been found" />
              </else>
            </if>
         </then>
       </if>
</target>

非常感谢它在根目录中创建了一个引导标识文件…:)
-Dweblogic.management.username=username
-Dweblogic.management.password=password