0
有没有办法从ant启动Windows资源管理器而不停止构建?从ANT启动Windows资源管理器?
这是我到目前为止有:
<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">
不幸的是,上述暂停代码为每个窗口打开,我没有一次同时获得我的资源管理器窗口。
@omermuhammed那么,是什么在/ C呢?我已经看到很多ANT的东西。 – leeand00 2010-03-06 17:25:55
/c标志在执行该命令后关闭cmd shell。因此,在这种情况下,cmd shell会在您想要的目录中启动资源管理器窗口,然后关闭。 – omermuhammed 2010-03-07 01:26:58