|
From: Marco T. <mt...@je...> - 2006-04-14 14:27:11
|
I solved my problems thanks. It was a mixture of properties not set properly and an error occurring during the unit tests, since, on my system, the wrapper doesn't resolve Java system property user.home to C:/Documents And Settings/<username> but it resolves to C:/Documents And Settings/LocalService. I bypassed this problem by having my unit tests to use a system environment variable that both Wrapper and Java would interpret as being the same. Marco ----- Original Message ----- From: "Geoffrey Mitchell" <ga...@im...> To: <wra...@li...> Sent: Thursday, April 13, 2006 6:05 PM Subject: Re: [Wrapper-user] Wrapper on CruiseControl doesn't work >I just avoid relative paths, which I generally think is a good idea anyway. >It's good to know that that property is there now, though. I will probably >make use of it in the future. In my current implementation, I have hacked >the wrapper script to not change the working directory, and it works great! > > Leif Mortenson wrote: > >> Geoffrey, >> >>> I know that Cruise and the wrapper both have some expectations regarding >>> your current working directory (something I personally regard as a sin, >>> but that's just my opinion). >> >> I actually agree with you. But the problem is that the working directory >> is not consistent >> between running as a console app and running as a service under windows. >> When run >> as a service, the working directory is always set to the system32 >> directory. This means >> that relative paths in an application become pretty much impossible. I >> always like being >> able to write apps that are deployed as a zip or tar file and then >> unpackaged anyplace >> and run. Having a known fixed working directory as a base makes >> everything just work. >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > --- [This E-mail has been scanned for viruses but it is your responsibility to maintain up to date anti virus software on the device that you are currently using to read this email. ] |