我尝试运行脚本ant:
<project name="build-Fusion" default="install-all" basedir="..">
<property environment="env"/>
<condition property="mvn.exec" value="mvn.bat" else="mvn">
<os family="windows"/>
</condition>
<!-- colocar o value vazio para executar os junits -->
<property name="skip.test" value="-Dmaven.test.skip=true"/>
<target name="install-all">
<echo>base dir=${basedir}</echo>
<exec executable="${mvn.exec}" failonerror="true" dir="./">
<arg value="install"/>
<arg value="${skip.test}"/>
</exec>
</target>
</project>
但是我收到了这个错误:
Buildfile:/ Volumes / Ficheiro / Ambiente Desenvolvimento / Workspace fusion / fusion / ant / build.xml install-all: [echo] base dir = / Volumes / Ficheiro / Temp
BUILD FAILED / Volumes / Ficheiro / Ambiente Desenvolvimento / Workspace fusion / fusion / ant / build.xml:15:执行失败:java.io.IOException: 无法运行程序&#34; mvn&#34; (在目录&#34; / Volumes / Ficheiro / Temp&#34;): error = 2,没有这样的文件或目录
总时间:374毫秒
如何在ant脚本中设置间距为相对路径?
答案 0 :(得分:0)
我发现了自己的错误。我没有在IOS中设置变量Ant。为我改变工作后!