Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added some more explanations to the latest example

  • Loading branch information...
commit 941f67df1a77a6252c91ec45d790ca45b6e5498a 1 parent 60a259b
@morkeleb authored
Showing with 5 additions and 2 deletions.
  1. +5 −2
@@ -30,9 +30,12 @@ OnChange can also be configured to do reactions based on the output of the actio
Currently this is the usage:
- onchange.exe -f *.doc -r .*Failed.*:uploadfailed.bat upload.bat
+ ´onchange.exe -f *.doc -r .*Failed.*:uploadfailed.bat upload.bat´
this will watch the current directory for changes to *.doc files. When they change upload.bat will be executed as the action. If the output for upload.bat contains the word "Failed" the uploadfailed.bat will be fired as reaction.
another example is:
- onchange -f *.py -r "^FAILED.*$:fail.bat" -r ^OK.*:pass.bat runtests.bat
+ ´onchange -f *.py -r "^FAILED.*$:fail.bat" -r ^OK.*:pass.bat runtests.bat´
+This will run the runtests.bat command when any *.py file is updated.
+It will run the fail.bat command when the tests output contains the word FAILED.
+It will run the pass.bat command when the tests output contains the word OK.
Please sign in to comment.
Something went wrong with that request. Please try again.