arch@glassfish.java.net

Re: [arch] host name independence

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Fri, 25 Jul 2008 16:45:59 -0700

Byron Nevins wrote:
> I don't know but I imagine it would be a problem. The ":" vs ";" is
> classpaths would be an issue.
> Also we tend to use backslashes in Windows for no valid reason. Windows
> almost never requires backslashes.

This is a bug. In default config, we use ${path.separator} to address
this very issue.

We need to extend this to classpath.separator.

                      *nixes Windows
path.separator / \\
classpath.separator : ;

Everywhere, we need to refer to them as ${path.separator} and
${classpath.separator}. This is in sync with ${com.sun.aas.hostName}
  we talked about.

>
> Lloyd Chambers wrote:
>> Byron,
>>
>> Is this true even when moving from a Windows machine to unix and vice
>> versa? (Eg forward slash vs backslash) Even for cases where a user
>> enters a path? (are there such cases?)
>>
>> Lloyd
>>
>>
>>
>> On Jul 25, 2008, at 2:48 PM, Bill Shannon wrote:
>>
>>> Byron Nevins wrote:
>>>> backup-restore is pretty dumb. It knows just enough to set file
>>>> permissions properly (Java zip files lose all file properties)
>>>> The (local) hostname is set to a System Property by default so that
>>>> takes care of itself.
>>>> All the paths that WE put in domain.xml are relative to the instance
>>>> root -- which is determined at runtime.
>>>> Yes you should be able to copy a domain from one machine to another.
>>>
>>> Great!
>>>
>>> Let's make sure that that remains true...
>>>
>>
>