This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new f5f910e5e CAY-2785 Modeler: improve folder selection for cgen  - 
refactor output-dir related methods in cgen
f5f910e5e is described below

commit f5f910e5ef942377e40d6750fcefff9523f5a525
Author: Nikita Timofeev <stari...@gmail.com>
AuthorDate: Wed Dec 7 17:51:59 2022 +0300

    CAY-2785 Modeler: improve folder selection for cgen
     - refactor output-dir related methods in cgen
---
 .../src/main/java/org/apache/cayenne/gen/CgenConfiguration.java      | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/cayenne-cgen/src/main/java/org/apache/cayenne/gen/CgenConfiguration.java 
b/cayenne-cgen/src/main/java/org/apache/cayenne/gen/CgenConfiguration.java
index e550f7026..2b735713d 100644
--- a/cayenne-cgen/src/main/java/org/apache/cayenne/gen/CgenConfiguration.java
+++ b/cayenne-cgen/src/main/java/org/apache/cayenne/gen/CgenConfiguration.java
@@ -238,10 +238,7 @@ public class CgenConfiguration implements Serializable, 
XMLSerializable {
      */
     public Path buildOutputPath() {
         if (rootProjectPath == null) {
-            if(!cgenOutputRelativePath.isAbsolute()) {
-                throw new ValidationException("Output directory is a relative 
path but no root is set.");
-            }
-            // this should be only in case this is a new unsaved project
+            // this could be an unsaved project or direct usage in tools (Ant, 
Maven or Gradle)
             return cgenOutputRelativePath;
         }
 

Reply via email to