Steven Erat
Thu, 14 Aug 2003 13:03:57 -0700
There only needs to be one source for all platforms, not one source tree per OS.
The Macromedia XML News Aggregator uses this function to determine the correct
directory delimiter for the current OS:
----------------------------------------------------------------------------
<cfscript>
function getFileSeparator()
// this will switch betwixt *nix and Windows
{
var fileObj = "";
if (isDefined("application._fileSeparator"))
{
return application._fileSeparator;
}
else
{
fileObj = createObject("java", "java.io.File");
application._fileSeparator = fileObj.separator;
return getFileSeparator();
}
}
</cfscript>
----------------------------------------------------------------------------
<cfoutput>#getFileSeparator()#</cfoutput>
----------------------------------------------------------------------------
Otherwise, case sensitivity should be the only other concern for a single *nix/Windows
source tree.
-Steven Erat
-----Original Message-----
From: Giampaolo Bellavite [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 12:34 PM
To: Cornel Ivanescu
Subject: Re: [CFXML_Blog] CFXML_blog on SourceForge
Il 12/08/2003 alle 18.26, Cornel Ivanescu ha scritto:
> I belive that the changes have to be done on a separate version Linux
> specific... one example where Windows based systems use the "\"
> character I have to change that to "/" for Linux. Also you have a
> different version of CFMX for Linux which has different bugs
> potentially than the windows version. I was part of the red sky beta
> and I can tell you some things only applied to windows, some to both
> and some to Linux only.
Ok, but what we should do, in my ideal world, should not be platform specific.
Could not we add a flag into application.cfm file, for example, telling to the blog
use linux or windows specific code?
If it is only the slash, I think we could solve it without mantain two different
versions. But I've no idea what you did for the linux version (maybe you wrote about
it in the mailing list, i'll search for it).
--
Giampaolo Bellavite, Milano
* E-mail: [EMAIL PROTECTED]
* http://www.bellavite.com