0

ビルドを停止せずに ant から Windows Explorer を起動する方法はありますか?

これが私がこれまでに持っているものです:

<project default="default">
 <target name="default">
  <fail unless="customerName">
   You need to set the customerName.
   -DcustomerName=Value
  </fail>
  <fail unless="htmlCode">
   You need to set the htmlCode.
   -DcustomerName=Value
  </fail>
  <exec executable="cmd">
   <arg value="-b">

  </exec>
  <exec executable="explorer">
   <arg value='"C:\working_copies\${customerName}\${htmlCode}"' />
  </exec>
  <exec executable="explorer">

残念ながら、上記のコードはウィンドウが開くたびに一時停止し、両方のエクスプローラー ウィンドウを一度に表示することはできません。

4

1 に答える 1

3

これはうまくいくはずです:

<exec executable="cmd.exe"
      dir="C:\working_copies\${customerName}\${htmlCode}">
      <arg line="/c explorer ." />
</exec>
于 2010-03-05T00:07:00.537 に答える