cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject cayenne git commit: CAY-2334 cgen: option to force run from maven/gradle fix for older gradle versions
Date Fri, 02 Feb 2018 09:44:20 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 023547e6a -> 763a18807


CAY-2334 cgen: option to force run from maven/gradle
   fix for older gradle versions


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/763a1880
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/763a1880
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/763a1880

Branch: refs/heads/master
Commit: 763a188075587572028c63b77b93b16de88b603a
Parents: 023547e
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Fri Feb 2 12:44:07 2018 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Fri Feb 2 12:44:07 2018 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/cayenne/tools/CgenTask.java           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/763a1880/cayenne-gradle-plugin/src/main/java/org/apache/cayenne/tools/CgenTask.java
----------------------------------------------------------------------
diff --git a/cayenne-gradle-plugin/src/main/java/org/apache/cayenne/tools/CgenTask.java b/cayenne-gradle-plugin/src/main/java/org/apache/cayenne/tools/CgenTask.java
index b6b376e..fe3892b 100644
--- a/cayenne-gradle-plugin/src/main/java/org/apache/cayenne/tools/CgenTask.java
+++ b/cayenne-gradle-plugin/src/main/java/org/apache/cayenne/tools/CgenTask.java
@@ -137,7 +137,7 @@ public class CgenTask extends BaseCayenneTask {
 
             generator.setLogger(getLogger());
 
-            if(this.force || (getProject().findProperty("force") != null)) {
+            if(this.force || getProject().hasProperty("force")) {
                 generator.setForce(true);
             }
             generator.setTimestamp(dataMapFile.lastModified());


Mime
View raw message