我正在尝试让我的Ant脚本为我检索Composer。Composer是PHP的依赖管理器。根据文档,需要运行以下命令:"curl -s https://getcomposer.org/installer | php",这将把Composer.phar下载到我所在的目录中。在终端上运行时,这可以正常工作。
如何为此设置Ant构建文件?到目前为止,我已经为“composerget”目标编写了此段代码,但它不会保存文件,只会在我的命令shell中输出它:
任何帮助都非常感激。
如何为此设置Ant构建文件?到目前为止,我已经为“composerget”目标编写了此段代码,但它不会保存文件,只会在我的命令shell中输出它:
....
<target name="composerget" description="Composer update dependencies">
<exec executable="curl">
<arg line="-s" />
<arg line="https://getcomposer.org/installer"/>
<arg line="| php" />
</exec>
</target>
....
任何帮助都非常感激。