Suppress Phing target output?

Is there an option to suppress the default output displayed when a target is executed in Phing. I have

<foreach param="my_param" absparam="my_abs_param" target="my-target">
      <fileset dir="www">
          <include name="lots-of-files-here" />
      </fileset>
</foreach>

In cases where the target performs a simple check in each directory, the output of which is not suitable at all, but prints a huge number of messages telling my-target:

 > my-target:
[foreach] Calling Buildfile 'build.xml' with target 'my-target'.

Is there any way to disable this output?

+4
source share
2 answers

For a specific purpose you cannot. For all execution, you can specify a silent argument:

bin/phing -silent db.wanup.deploy

Added:

If you want to view several of your echoes, you must execute it in silent mode:

bin/phing -quiet

And set the echo level of the echo to warning or. , . "", "", "", "", "" ( )

<echo level="warning"> món! </echo>

:

<?xml version="1.0" ?>

<target name="list">
    <echo>  Hola </echo>
    <phingcall target="mon" />

</target>

<target name="mon" >
    <echo level="warning"> món! </echo>
</target>

phing , :

Buildfile: /private/tmp/build.xml

silent execution > list:

     [echo]   Hola

silent execution > mon:

     [echo]  món!

BUILD FINISHED

Total time: 0.2197 seconds

phing -quiet (-q -quiet), :

     [echo]  món!

BUILD FINISHED

Total time: 0.1822 seconds
+1

! Phing , foreach/phingcall ​​. 2.9.0, http://www.phing.info/trac/ticket/1144.

0

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


All Articles