A class for phing derived from Federico Cargnelutti <fede.carg@gmail.com> class with some changes