1
<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 スクリプトを介してユーザー名とパスワードを要求する方法を教えてください。

4

1 に答える 1