Now when we add JRebel as javaagent to app it will start by reading this class and knows to check the directory
(instead of dir we can watch jars and other stuff). Like in our example we would probably like to exclude some paths
in directory not to scan the whole folder because it's just too expensive.
How to do that? Just add exclude/include tags in
JRebel is a smart beast that can scan all the resources in classpath, including dependency jars.
All we need to do is to put proper rebel.xml into each one of the (each we want to follow).
Each has to say where JRebel can find new classes.
I just lost about 2 hours because I called the file ```jrebel.xml``` instead of rebel.xml and wondered why doesn't it scan path... :-/
Next thing to automate all of this is to add JRebel support to Maven build lifecycle,
then we don't need to create rebel.xml by had, and all of developers can use unified pom.xml
(which will add project root path to ```rebel.xml```). Remember to do this on all modules you want to have reloaded!
Not just root or web project! Here's how mine looks: