I'm writing a Java SE app that uses JPA. I followed these instructions for setting up an ANT builder to enhance my entity classes. It worked.

The problem is that the ANT enhance target runs every time I save any file in my project. Can I make it run only when I modify one of my entity classes?