querydsl / apt-maven-plugin

Maven APT plugin
Apache License 2.0
79 stars 41 forks source link

entities in test root are not processed #11

Closed masha256 closed 12 years ago

masha256 commented 12 years ago

in src/main/java/com/mysema/maven/apt/AbstractProcessorMojo.java:

protected boolean isForTest() { return false; }

Causes entities in a test root to not get processed. If one has unit tests that use entities contained in the src/test/java folder, they do not get processed.

The above should check if we are being ran as tests and return true. The other logic to use the test root is already in place.

masha256 commented 12 years ago

nevermind, didnt have right goal in my plugin definition. It is working, just thought it was strange that function was hard coded to always return false.

timowest commented 12 years ago

Yes, it's a template method.