If you are looking for a specific property, you can just use the fail task with the unless attribute, e.g.:
<fail unless="my.property">Computer says no. You forgot to set 'my.property'!</fail>
Refer to the documentation for Ant’s fail task for more detail.