Neil,

Glad to see you got it working - I'm not sure about the jikes/javac issue.
Regarding the C:\
How are you launching the chooser - I usually do it something like this -

// client is an instance of SPWebdavClient
// current is an existing SPFile that may or may not exist

String rootpath = "/Server-webdav/files/"; //This is usually stored as a 
property
String home = 
EditorSettings.getSharedInstance().getProperty("user.home.dir");
   
        if (client !=null ) {
            try {
                
parent.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                if (current!=null && current.exists())
                    chooser = SPFileChooser.
                                        
createWebFileChooser((SPFile)current);
                else {
                    chooser = SPFileChooser.
                                        createWebFileChooser(client, 
rootpath);
                    ((SPFileChooser)chooser).setHomeDirectory(home);
                }
                ((SPFileChooser)chooser).setFileFilter(filter);
                parent.setCursor(Cursor.getDefaultCursor());
            } catch(Exception ex) {
                ex.printStackTrace();
                parent.setCursor(Cursor.getDefaultCursor());
            }

Hope this is of some use.
Justin.

>> These errors I have no idea about. They go away if you just run javac
>> directly on the two files in question. Perhaps there's something really
>> broken in the ant build file causing this? I ended up just compiling
>> these two files directly, and letting ant finish the rest. Works fine
>> then.
>> 
>> If _anyone_ can shed light on what might be causing this, please tell
>> me!
>
Using jikes instead of javac I managed to compile them (jikes did give
8 warnings). So I could start the client and it seems to work pretty
well. However the filechooser shows "C:\" as the root of the webdav
server.
 

>> This error is known about, I haven't had time for a proper fix.
>> Basically, we needed proxy support, so I hacked it into the http client
>> code. It seems to work, but it really is a nasty hack. I can send you
>> diffs if you want to do the same, but we really need to get this
>> resolved properly some time soon.
>
Thanks but I need no proxy right now so changing the startSession
methods was enough for now.

-- Neil de Hoog Lunatech Research [EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>



Reply via email to