i have about 25 phing targets, when i list them in the console.
But 5 of them are just needed by other targets and i will never trigger them alone.
is there a possibility to hide them?
For example:
There are the targets: cms.cc cc-config cc-content cc-service
The all pop up in my list, but "cc"-target is the only one i will trigger.
Thank you!
I didn't test it myself, but according a testcase I found via Google I guess, that there is a (not documented) attribute hidden
<target hidden="true" />
Using the suggested target attribute hidden
with them values true|false
while hide them from phing -l
since Phing version 2.4.3.
There's attribute hidden
for targets. It was documented starting from version 2.4.13
.
It's well described in the section H.2 Targets and subsection H.2.2 Attributes:
hidden | Boolean | Whether or not to include this target in the list of targets generated by phing -l | Default: False | Required: No
Currently available arguments are well documented as well in A.2 Command Line Arguments section:
-l -list
List all available targets in buildfile (excluding targets that have their
hidden
attribute set totrue
)
Example of usage is next:
<target name="project-target" description="meaningful description" hidden="true">
...
</target>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With