You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/06/26 17:57:06 UTC
[2/4] git commit: [CXF-5825] Fix the "verbose" logic in the tools
[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/6f83cb44
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/6f83cb44
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/6f83cb44
Branch: refs/heads/2.7.x-fixes
Commit: 6f83cb44f75093012bab9dbe6e5060fba8f25822
Parents: d4d674c
Author: Daniel Kulp <dk...@apache.org>
Authored: Thu Jun 26 11:05:46 2014 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Thu Jun 26 11:56:19 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/6f83cb44/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 1567b70..e0247d8 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
@@ -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/6f83cb44/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);
}
}