[Pas-dev] Re: Pas on win32?
Status: Beta
Brought to you by:
mortis
|
From: Kyle R . B. <mo...@vo...> - 2002-02-26 00:03:08
|
> I have been investigating using pas for some web development. I want to
> preface this by saying thanks for the great looking tool. I much prefer
> using Perl for things but all of the packages I was find to provide some
> app server structure instead of just going with a mish-mash of cgi's
> were in Java. So thanks!
Your welcome! Thanks for the feedback.
> I have pas working pretty well under Apache/Linux/mod_perl. However, I
> also loaded it on my laptop in order to work in an off-line mode. Under
> win2000server/winApache/mod_perl and am getting errors regarding
> pathnames. It looks like
> Org::Bgw::Pas::Psp::Compiler::create_directory_for_file is unhappy with
> the fact that there is now a drive letter in front of the paths it is
> dealing with.
Yes, that's a problem. When I wrote the code I never considered Windows.
There are several functions that need to be delt with.
In Org::Bgw::Pas::Psp::Compiler, the following need to be
updated to account for pathin differences (both / vs \\ and drive
letter vs no drive letter -- maybe we can change the code to use
File::Base?).
- sub compute_pwd
- sub resolve_includes
- sub file_to_package
- sub package_to_file
- sub create_directory_for_file (as you discovered)
> Have you/do you know of anyone running under this config?
Not until now. :)
> If so I'd like to talk to them to make sure I am not reinventing the
> wheel. Otherwise if I can patch and get things working I will send the
> info along to you. I'm including the details below.
That would be awesome. I appreciate your involvement.
Oh, looking at your http.conf, is the only issue the leading drive
letter? Do we just need to keep create_directory_for_file to not
call mkdir for [ $file =~ /^[a-z]:\//i ]? Hrm...but doesn't the
[ -d $path ] return true for "d:/"?
I added your configuration of http.conf to the CVS archivea s docs/Win32.
By the way, if you want to try to just compile a PSP page, there
is a utility: bin/pspCompilePage that you can use to run/test the compiler
by hand. There is also a bin/pspBuild that will attempt to compile all
of the PSP pages under the document root.
Thanks again,
Kyle R. Burton
--
------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
-- Christmas Humphreys
mo...@vo... http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
|