Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check if property has been set in phing

Tags:

phing

How to check if property ${foo} has been set?

Bonus question: how to escape $ sign in <echo> so I could output ${foo} string (not the foo variable substitution)?

PS: tried to google and read documentation, but couldn't find the answers. It's likely I'm missing something

like image 669
zerkms Avatar asked Aug 17 '12 05:08

zerkms


1 Answers

You need to place an isset element inside the if element.

<if>
    <isset property="foo" />

The manual is available here.

like image 51
alex Avatar answered Nov 01 '22 21:11

alex