cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [1/3] git commit: [CXF-5825] Fix the "verbose" logic in the tools
Date Thu, 26 Jun 2014 16:10:26 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.6.x-fixes 5ef5d91a8 -> 3df773fdc


[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/6f2bda48
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/6f2bda48
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/6f2bda48

Branch: refs/heads/2.6.x-fixes
Commit: 6f2bda483ffba734732de60628ce45d19ebaeda9
Parents: 5ef5d91
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 12:10:13 2014 -0400

----------------------------------------------------------------------
 api/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/6f2bda48/api/src/main/java/org/apache/cxf/common/util/Compiler.java
----------------------------------------------------------------------
diff --git a/api/src/main/java/org/apache/cxf/common/util/Compiler.java b/api/src/main/java/org/apache/cxf/common/util/Compiler.java
index 57aeaee..2fa4b21 100644
--- a/api/src/main/java/org/apache/cxf/common/util/Compiler.java
+++ b/api/src/main/java/org/apache/cxf/common/util/Compiler.java
@@ -69,9 +69,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/6f2bda48/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