我的构建.xml文件在此目标标记上失败。
<property name="composer" value="C:/ProgramData/ComposerSetup/bin/"/>
<target name="composerInstall"
unless="composerInstall.done"
description="Installs composer dependencies">
<exec executable="${composer}" taskname="composer">
<arg value="install"/>
</exec>
<property name="composerInstall.done" value="true"/>
</target>
有了这个错误...
C:Usersmespaceballsbuild.xml:29: Execute failed:
java.io.IOException: Cannot run program "C:ProgramDataComposerSetupbin" (in directory "C:Usersmespaceballs"):
CreateProcess error=5, Access is denied
我正在运行安装了 Docker 工具箱的 Windows 10 家庭版。命令"docker-compose up"和"composer install"在命令行中工作正常,我尝试调整该bin目录的权限,希望解决此问题。
能够使用此目标进行构建...
<target name="composerInstall"
unless="composerInstall.done"
description="Installs composer dependencies">
<exec executable="${php}">
<arg value="${composer}"/>
<arg value="install"/>
</exec>
<property name="composerInstall.done" value="true"/>
</target>
添加了定义 $(php( 的目标
<target name="php-check">
<condition property="php" value="php">
<not>
<isset property="${php}"/>
</not>
</condition>
</target>
作曲家被定义为...
<property name="composer" value="${basedir}/composer.phar"/>