how to exec command in new prompt using ant
问题 I am trying to run a command in ant to start the selenium server but it opens up in the same command prompt, is there anyway i can open it up in a new prompt? <project> <target name="startGRID"> <exec dir="." executable="cmd"> <arg value="/c"/> <arg value="java -jar selenium-server-standalone-2.43.1.jar -role hub"/> </exec> </target> </project> 回答1: To see a separate command prompt in which your server is run, use the dos start command, which does exactly that: <exec dir="." executable="cmd">