cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r630272 - /incubator/cxf/branches/2.0.x-fixes/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java
Date Fri, 22 Feb 2008 18:09:36 GMT
Author: dkulp
Date: Fri Feb 22 10:09:33 2008
New Revision: 630272

URL: http://svn.apache.org/viewvc?rev=630272&view=rev
Log:
[CXF-1446] Fix for 2.0.x branch

Modified:
    incubator/cxf/branches/2.0.x-fixes/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java

Modified: incubator/cxf/branches/2.0.x-fixes/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java?rev=630272&r1=630271&r2=630272&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java
(original)
+++ incubator/cxf/branches/2.0.x-fixes/tools/javato/core/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java
Fri Feb 22 10:09:33 2008
@@ -187,7 +187,9 @@
     protected File getOutputDir(File wsdlLocation) {
         String dir = (String)context.get(ToolConstants.CFG_OUTPUTDIR);
         if (dir == null) {
-            if (wsdlLocation == null) {
+            if (wsdlLocation == null 
+                || wsdlLocation.getParentFile() == null
+                || !wsdlLocation.getParentFile().exists()) {
                 dir = "./";
             } else {
                 dir = wsdlLocation.getParent();



Mime
View raw message