2013-06-19 2 views
1

배포 용으로 phing을 사용하고 있습니다. 내 목표의어떻게하면 자동으로 phing을 수락 할 수 있습니까?

하나는 테스트 버전으로 구축 :

<exec command="php app/console doctrine:schema:drop --force" dir=""/> 
    <exec command="php app/console doctrine:schema:create" dir=""/> 
    <exec command="php app/console doctrine:fixtures:load" dir="" passthru="true"/> 

마지막 명령을 실행하는 "Y"를 필요로한다. 나는 어떻게하면 자동으로 "y"를 가정해야하는지 phing에게 알릴 수 있습니까?

답변

4

난 당신이 yes 리눅스 명령을 사용할 수 있다고 생각합니다 감사합니다.

<exec command="yes | php app/console doctrine:fixtures:load" dir="" passthru="true"/> 

상세 정보 : 당신의 마지막 줄을 수정 일하고있어 그 http://www.computerhope.com/unix/yes.htm

+0

. 고맙습니다. – Strernd

+0

문제가 해결되면 답을 수락하십시오. – m4t1t0

+0

네, 기다려야했습니다. – Strernd