cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/3] git commit: [CXF-5825] Fix the "verbose" logic in the tools
Date Thu, 26 Jun 2014 15:55:12 GMT
[CXF-5825] Fix the "verbose" logic in the tools


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

Branch: refs/heads/master
Commit: f24a5bec9d7236f9b4b7f208b1f570cdf0381a61
Parents: 53270bd
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu Jun 26 11:05:46 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Jun 26 11:55:04 2014 -0400

----------------------------------------------------------------------
 core/src/main/java/org/apache/cxf/common/util/Compiler.java      | 3 ---
 .../src/main/java/org/apache/cxf/tools/common/ToolContext.java   | 4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f24a5bec/core/src/main/java/org/apache/cxf/common/util/Compiler.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/cxf/common/util/Compiler.java b/core/src/main/java/org/apache/cxf/common/util/Compiler.java
index 1567b70..e0247d8 100644
--- a/core/src/main/java/org/apache/cxf/common/util/Compiler.java
+++ b/core/src/main/java/org/apache/cxf/common/util/Compiler.java
@@ -85,9 +85,6 @@ public class Compiler {
     }
     
     protected void addArgs(List<String> list) {
-        if (verbose) {
-            list.add("-verbose");
-        }
         if (!StringUtils.isEmpty(encoding)) {
             list.add("-encoding");
             list.add(encoding);

http://git-wip-us.apache.org/repos/asf/cxf/blob/f24a5bec/tools/common/src/main/java/org/apache/cxf/tools/common/ToolContext.java
----------------------------------------------------------------------
diff --git a/tools/common/src/main/java/org/apache/cxf/tools/common/ToolContext.java b/tools/common/src/main/java/org/apache/cxf/tools/common/ToolContext.java
index 0e6ca33..c3535dc 100644
--- a/tools/common/src/main/java/org/apache/cxf/tools/common/ToolContext.java
+++ b/tools/common/src/main/java/org/apache/cxf/tools/common/ToolContext.java
@@ -160,11 +160,11 @@ public class ToolContext {
     }
 
     public boolean isVerbose() {
-        Object verboseProperty = get(ToolConstants.CFG_VERBOSE);
+        String verboseProperty = get(ToolConstants.CFG_VERBOSE, String.class);
         if (verboseProperty == null) {
             return false;
         } else {
-            return ToolConstants.CFG_VERBOSE.equals(verboseProperty);
+            return ToolConstants.CFG_VERBOSE.equals(verboseProperty) || Boolean.parseBoolean(verboseProperty);
         }
     }
 


Mime
View raw message