문제

Is it possible with phing to implements some Task depending on command line?

Ex:

phing install tag=1.0 dest=/tmp/1.0

I actually only see 3 ways to do it

  • phing install -Dtag=1.0 -Ddest=/tmp/1.0
  • using a prompt (there is something like a PromptTask)
  • implementing my task and playing with $argv (global)

When calling a phing target from command line, are the other command line arguments useless ?

도움이 되었습니까?

해결책

It seems that property definition with -D is the official way: http://www.phing.info/trac/ticket/175

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top