开发者

Execute command in new window with Ant from IDEA

开发者 https://www.devze.com 2023-02-11 21:48 出处:网络
In IntelliJ IDEA I have this task in my Ant script <target name=\"emulator-logcat\"> <exec command=\"adb\" spawn=\"false\" osfamily=\"windows\">

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

精彩评论

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

关注公众号