K
K
krll-k2014-08-18 13:45:37
linux
krll-k, 2014-08-18 13:45:37

Can Phing accept values ​​from the command line into its tasks?

For example, if I want Phing to run a development server for me on localhost with port 8080, I could write a task in build.xml:

<target name="server">
    <exec command="php -S localhost:8080 -t ."/>
</target>

But there is one thing, but if I start, and port 8080 is busy, Phing will not tell me about it. Next, think about the method of preventing such situations. One such method would be to specify the domain and port at startup, something like this:
$ php vendor/bin/phing server
$ Укажите домен и порт на котором вы хотите запустить сервер: [localhost:8080]

I want to ask: is Phing able to match the GruntJS and GulpJS build systems that can accept values ​​from the command line?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question