Search code examples
phingfilemtime

Execute a phing target when a file has been modified


I have a filelist of about 25 files. I need to execute a certain phing target when the modification time of one of these files has changed. What is the best way to do this?


Solution

  • If you're after cross-platform then I guess you could try something like the Node.js beholder or hound to spawn a command line exec for Phing. Alternatively there are a few C++ cross-platform watcher libraries around if you want to roll your own.