Author: alessio.soldano(a)jboss.com
Date: 2013-01-18 19:17:49 -0500 (Fri, 18 Jan 2013)
New Revision: 452
Modified:
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/client/consumer/WiseCXFConsumerImpl.java
Log:
Removing dependency on BundleUtils
Modified:
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/client/consumer/WiseCXFConsumerImpl.java
===================================================================
---
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/client/consumer/WiseCXFConsumerImpl.java 2013-01-18
23:45:58 UTC (rev 451)
+++
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/client/consumer/WiseCXFConsumerImpl.java 2013-01-19
00:17:49 UTC (rev 452)
@@ -26,14 +26,11 @@
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
-import java.util.ResourceBundle;
import org.apache.cxf.tools.common.ToolContext;
import org.apache.cxf.tools.wsdlto.WSDLToJava;
import org.jboss.ws.api.tools.WSContractConsumer;
-import org.jboss.ws.api.util.BundleUtils;
import org.jboss.ws.common.utils.NullPrintStream;
-import org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl;
/**
* A WSContractConsumer for CXF stack; this is basically a copy of the JBossWS-CXF 4.1.0
@@ -44,7 +41,6 @@
*/
public class WiseCXFConsumerImpl extends WSContractConsumer
{
- private static final ResourceBundle bundle =
BundleUtils.getBundle(CXFConsumerImpl.class);
private List<File> bindingFiles = null;
private File catalog = null;
private boolean extension;
@@ -196,7 +192,7 @@
if (sourceDir != null && generateSource)
{
if (!sourceDir.exists() && !sourceDir.mkdirs())
- throw new IllegalStateException(BundleUtils.getMessage(bundle,
"COULD_NOT_MAKE_DIRECTORY", sourceDir.getName()));
+ throw new IllegalStateException("Could not make directory: " +
sourceDir.getName());
args.add("-d");
args.add(sourceDir.getAbsolutePath());
@@ -224,7 +220,7 @@
}
if (!outputDir.exists() && !outputDir.mkdirs())
- throw new IllegalStateException(BundleUtils.getMessage(bundle,
"COULD_NOT_MAKE_DIRECTORY", outputDir.getName()));
+ throw new IllegalStateException("Could not make directory: " +
outputDir.getName());
// Always add the output directory and the wsdl location
if (!nocompile)