0
我正在寻找一种通过Ant构建脚本运行play dist
的方法。我研究过使用exec
任务,但它不适合我。这里是我的尝试:从Ant脚本执行游戏
<target name="deploy">
<exec executable="play">
<arg value="dist" />
</exec>
</target>
我得到这个错误:
C:\Users\path\to\build.xml:39: Execute failed: java.io.IOException: Cannot run program "play": CreateProcess error=2, The system cannot find the file specified
戏剧已经在我的Path环境变量中,我可以通过键入play
,这样ISN在命令行中执行它这个问题。由于系统管理员限制,我不允许使用绝对路径。
任何想法?