<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>
在运行时通过 ANT 脚本运行此 ANT 脚本后,如何传递询问的用户名和密码?