maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptahch...@apache.org
Subject maven-archetype git commit: ARCHETYPE-501 Blank archetype properties are invalid.
Date Fri, 12 Aug 2016 14:05:48 GMT
Repository: maven-archetype
Updated Branches:
  refs/heads/master f5cdc4855 -> 81efe27c7


ARCHETYPE-501 Blank archetype properties are invalid.

Checking if properties provided by user are empty is not emough,
we must also check if they are not blank.

Close: https://issues.apache.org/jira/browse/ARCHETYPE-501


Project: http://git-wip-us.apache.org/repos/asf/maven-archetype/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-archetype/commit/81efe27c
Tree: http://git-wip-us.apache.org/repos/asf/maven-archetype/tree/81efe27c
Diff: http://git-wip-us.apache.org/repos/asf/maven-archetype/diff/81efe27c

Branch: refs/heads/master
Commit: 81efe27c75b649e353eb000e255c82704126a17e
Parents: f5cdc48
Author: Petar Tahchiev <paranoiabla@gmail.com>
Authored: Fri Aug 12 17:03:56 2016 +0300
Committer: Petar Tahchiev <paranoiabla@gmail.com>
Committed: Fri Aug 12 17:03:56 2016 +0300

----------------------------------------------------------------------
 .../java/org/apache/maven/archetype/ui/ArchetypeConfiguration.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/81efe27c/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/ArchetypeConfiguration.java
----------------------------------------------------------------------
diff --git a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/ArchetypeConfiguration.java
b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/ArchetypeConfiguration.java
index 9899cd3..62be9c2 100644
--- a/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/ArchetypeConfiguration.java
+++ b/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/ArchetypeConfiguration.java
@@ -198,7 +198,7 @@ public class ArchetypeConfiguration
 
     public boolean isConfigured( String requiredProperties )
     {
-        return StringUtils.isNotEmpty( properties.getProperty( requiredProperties ) );
+        return StringUtils.isNotBlank( properties.getProperty( requiredProperties ) );
     }
 
     private Properties defaultProperties = new Properties();


Mime
View raw message