You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Patrick Linskey (JIRA)" <ji...@apache.org> on 2007/09/18 16:31:44 UTC

[jira] Commented: (OPENJPA-374) OpenJPA build process enhances Entity classes even when testing is deactivated via -Dtest=false

    [ https://issues.apache.org/jira/browse/OPENJPA-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528396 ] 

Patrick Linskey commented on OPENJPA-374:
-----------------------------------------

FTR, the build scripts attempt to run the enhancer against all entity classes except those that start with 'Unenhanced'.

This fact is probably unrelated to this JIRA issue, which was probably filed because OpenJPA should ideally not be running the enhancer at all in certain configurations. But, if you are looking for a way to store a class that should fail to enhance, then you can name it 'Unenhanced<Something>'.

Also, note that I imagine it'll be a bit tricky to decouple the enhancer in an optimal way. I believe that the -Dtest=false thing is a bit of a hack (recall that you can also do -Dtest=MyTestClassName), so probably has nothing to do with mvn build phases.

> OpenJPA build process enhances Entity classes even when testing is deactivated via -Dtest=false
> -----------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-374
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-374
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: build / infrastructure
>            Reporter: Pinaki Poddar
>
> $ mvn package -Dtest=false
> attempts to enhance all the known Entity classes.
> It should not. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.