Запуск Windows Explorer из ANT? - PullRequest
       11

Запуск Windows Explorer из ANT?

0 голосов
/ 04 марта 2010

Есть ли способ запустить Windows Explorer из ant без остановки сборки?

Вот что у меня есть:

<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">

К сожалению, приведенный выше код делает паузу для каждого открытого окна, и я не получаю оба окна моего проводника одновременно.

1 Ответ

3 голосов
/ 05 марта 2010

Это должно работать:

<exec executable="cmd.exe"
      dir="C:\working_copies\${customerName}\${htmlCode}">
      <arg line="/c explorer ." />
</exec>
...