필자의 Ant 스크립트에서 Composer를 검색하려고합니다. Composer은 PHP를위한 의존성 관리자입니다. According to the doc이 명령을 실행해야합니다 : "curl -s https://getcomposer.org/installer | php"어떤 디렉토리에서 Composer.phar를 다운로드 할 것입니다. 이것은 터미널에서 실행할 때 의도 한대로 동작합니다.Ant를 통해 작성기를 가져 오는 방법은 무엇입니까?
Ant 빌드 파일을 어떻게 설정합니까? 지금까지 나는 "composerget"대상이 세그먼트를 가지고,하지만 내 명령 쉘에서 만 출력을 파일을 저장하지 않습니다이다 :
....
<target name="composerget" description="Composer update dependencies">
<exec executable="curl">
<arg line="-s" />
<arg line="https://getcomposer.org/installer"/>
<arg line="| php" />
</exec>
</target>
....
어떤 도움을 크게 appeciated된다.
: 당신이 GNU이 확인 사용하는 경우
, 이것은 동일합니다 가능한 복제품 [파이프로 개미 명령] (http://stackoverflow.com/questions/1187402/ant-run-command-with-pipes) – Mez