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