Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-tm-dev] problems with localFile and hostname


Hi Christian,

We already have a bug open for the invalid chars in a file name:  https://bugs.eclipse.org/bugs/show_bug.cgi?id=160103.   I plan to take a look at it soon.  

In the meantime, you should be able to work around this by using the Mount Path Mappers extension point.  This provides the means to override how remote files are stored in the RemoteSystemsTempFiles project.

By default, RSE uses the folowing:

   <extension
         point="org.eclipse.rse.ui.mountPathMappers">
      <mountPathMapper
            name="DefaultMountPathMapper"
            class="org.eclipse.rse.internal.files.ui.resources.DefaultMountPathMapper"
            id="org.eclipse.rse.core.resources.defaultmountpathmapper">
      </mountPathMapper>
   </extension>


To provide your own extension you need to implement ISystemMountPathMapper.

If you have more questions about that, let me know.

Thanks,

____________________________________
David McKnight    
Phone:   905-413-3902 , T/L:  969-3902
Internet: dmcknigh@xxxxxxxxxx
Mail:       D1/YFY/8200/TOR
____________________________________



Christian Hohmann <c.hohmann@xxxxxxxxxxxxx>
Sent by: dsdp-tm-dev-bounces@xxxxxxxxxxx

07/01/2008 10:07 AM

Please respond to
Target Management developer discussions <dsdp-tm-dev@xxxxxxxxxxx>

To
Target Management developer discussions <dsdp-tm-dev@xxxxxxxxxxx>
cc
Subject
[dsdp-tm-dev] problems with localFile and hostname





Hi all,
I'm trying to extend the RSE with a new subsystem for my
webservice-based filesystem. Now I ran into problems:

When I try to open a file there is a call on the download() method in my
FileService implementation. For the variable "File localFile" I get the
value:
"C:\Dokumente und Einstellungen\Christian
Hohmann\runtime-EclipseApplication\RemoteSystemsTempFiles\LOCALHOST:8080\DEMO-SITE\SERVICES\STORAGEMANAGEMENT?RES=DEFAULT_STORAGE\uas3.txt"

The problems are ":" and "?". This signs are not allowed in file and
folder names on Microsoft OS.
How can I deal with the localFile - names to download and view the files?


Another problem occures when I creat a new connection. I can enter my
hostname in capital and lower case letters. But asking for the hostname
via: IHost.getHostName() returns only capital letters.
input:
https://localhost:8080/DEMO-SITE/services/StorageManagement?res=default_storage
changes to:
HTTPS://LOCALHOST:8080/DEMO-SITE/SERVICES/STORAGEMANAGEMENT?RES=DEFAULT_STORAGE

This causes some trouble with my own connector later on. For testing I
coded the needed hostname fix into the source. Is there a possibility
for getting the hostname in the format that I entered?

I hope you can give me some advice -
Christian

-------------------------------------------------------------------

Christian Hohmann
SW - Engineer

Forschungszentrum Jülich GmbH
Jülich Supercomputing Centre (JSC)
Distributed Systems and Grid Computing Division
-------------------------------------------------------------------


-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Bärbel Brumme-Bothe
Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
_______________________________________________
dsdp-tm-dev mailing list
dsdp-tm-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev


Back to the top