cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-2334) cgen: option to force run from maven/gradle
Date Thu, 01 Feb 2018 09:06:00 GMT

    [ https://issues.apache.org/jira/browse/CAY-2334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348244#comment-16348244
] 

Nikita Timofeev commented on CAY-2334:
--------------------------------------

For gradle: 
{code}
cgen {
    force true
} 
{code}
or {{gradlew cgen -Pforce}}

> cgen: option to force run from maven/gradle
> -------------------------------------------
>
>                 Key: CAY-2334
>                 URL: https://issues.apache.org/jira/browse/CAY-2334
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Non-GUI Tools
>    Affects Versions: 4.1.M1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.1.M2
>
>
> Currently {{cgen}} checks file modification and skips class generation completely if
data map file hasn't changed.  This can lead to minor annoyance in case you need to generate
new classes when templates changed (or whatever reason user might have), plus there can be
some bugs in this mechanics.
> Additionally this behavior should be mentioned in docs.
> Offered change is as simple as adding new option in {{cgen}} config that forces complete
java code regeneration.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message