开发者

Execute command in new window with Ant from IDEA

In IntelliJ IDEA I have this task in my Ant script

<target name="emulator-logcat">
    <exec command="adb" spawn="false" osfamily="windows">
        <arg value="-e"/>
        <arg value="shell"/>
        <arg value="logcat"/>
    </exec>
</target>

It works but command output sent to IDEA ant 开发者_如何学Pythonwindow, not in Windows console window. How i can forward command output into new Windows console window as if i start this command from cmd.exe?


Problem resolved: I create runner.bat file witch contains %* and call it like this

<target name="emulator-logcat">
    <exec command="cmd.exe" spawn="true" osfamily="windows">
        <arg line="/c start runner.bat adb -e shell logcat"/>
    </exec>
</target>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜