[ 
https://issues.apache.org/jira/browse/CXF-3487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046584#comment-13046584
 ] 

Daniel Kulp commented on CXF-3487:
----------------------------------


This might be a Java bug on Linux or an OS issue or something.  I'm not really 
sure.  I cannot figure out how to take the above strings that point to a valid 
file on the filesystem and get a java.io.File object that returns true for 
exists() or even a File pointing to the directory where .isDirectory() returns 
true.   A simple program like:

{code:java}
        File file = new File("/tmp");
        for (String f : file.list()) {
            if (f.startsWith("test-")) {
                File f2 = new File("/tmp/" + f);
                System.out.println(f2);
                System.out.println(f2.exists());
                System.out.println(f2.isDirectory());
                
                f2 = new File(file, f);
                System.out.println(f2);
                System.out.println(f2.exists());
                System.out.println(f2.isDirectory());
            }
        }       
        for (File f : file.listFiles()) {
            if (f.getName().startsWith("test-")) {
                File f2 = new File("/tmp/" + f.getName());
                System.out.println(f2);
                System.out.println(f2.exists());
                System.out.println(f2.isDirectory());
                
                System.out.println(f);
                System.out.println(f.exists());
                System.out.println(f.isDirectory());
            }
        }
{code}
Returns false for everything for  all directories I stuck in /tmp that start 
with test- and have accents.    If we can figure out how to get the File 
object, we might be able to get this working.

Note: maven seems to have the same issue.  If I stick a pom.xml in a directory 
with an accent, maven cannot find the pom and won't build.




> wsdl2java cannot handle file path with accents
> ----------------------------------------------
>
>                 Key: CXF-3487
>                 URL: https://issues.apache.org/jira/browse/CXF-3487
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.13, 2.2.11, 2.2.12, 2.4, 2.3.4
>         Environment: * Linux Ubuntu 9.10
> * java version "1.6.0_24"
> Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
> Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)
> * CXF 2.4.0
>            Reporter: Mickael Istria
>              Labels: wsdl2java
>
> It is not possible to perfrom a wsdl2java operation on a file path or URL 
> that contains an accent (é).
> Tried:
> * wsdl2java file:/home/mistria/accent_é.wsdl
> * wsdl2java file:/home/mistria/accent_%e9.wsdl
> * wsdl2java file:/home/mistria/accent_%E9.wsdl
> * wsdl2java /home/mistria/accent_é.wsdl
> * wsdl2java /home/mistria/accent_%e9.wsdl
> * wsdl2java /home/mistria/accent_%E9.wsdl
> Unsuccessfully

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to