开发者

Launching Windows Explorer from ANT?

开发者 https://www.devze.com 2022-12-21 19:26 出处:网络
Is there any way of launching Windows Explorer from ant without stopping the build? Here is what I have so far:

Is there any way of launching Windows Explorer from ant without stopping the build?

Here is what I have so far:

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

开发者_如何学PythonUnfortunately the code above pauses for each window opened and I don't get both my explorer windows at once.


This should work:

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号