How to use command line options with phing

Is it possible if phing will do some task depending on the command line?

Example:

phing install tag = 1.0 dest = / tmp / 1.0

In fact, I see only 3 ways to do this.

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

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

+4
source share
1 answer

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

+4
source

Source: https://habr.com/ru/post/1487315/


All Articles