Skip to content

Instantly share code, notes, and snippets.

@dig412
dig412 / gist:5057536
Last active December 14, 2015 08:28
Phing condition for testing if an executable is available on the system.
<?php
/**
* Phing task to test if a given external program is avilable on the system
*
* Internally this uses "which" on Linux / OSX and "where" on Windows to locate the executable
*
* Usage:
* Put the file in a subfolder called "tasks", and use as follows:
*
* <typedef name="exists" classname="tasks.ExistsCondition"/>