|
From: Andreas W. <and...@em...> - 2004-03-09 17:15:14
|
Jennifer,
I don't want to set it in Java but for the wrapper executable.
This is currently not possible (at least on Windows) because there are the following lines in wrapper_win.c (in fuction setWorkingDir):
1653 /* Get the full path and filename of this program */
1654 if (GetModuleFileName(NULL, szPath, 512) == 0){
...
1674 if (chdir(szPath)) {
...
The wrapper always uses the directory where the executable is in.
Cheers,
Andreas
> -----Original Message-----
> From: Jennifer Kolar [mailto:jk...@si...]
> Sent: Tuesday, March 09, 2004 5:27 PM
> To: wra...@li...
> Subject: Re: [Wrapper-user] Wrapper directories
>
>
> you can specify the running directory (and thus not have it be where
> wrapper.exe is) in your java command line...
>
> -Duser.dir=blah
>
> in windows you can use %CD% to get the current running directory
> in unix you can use $PWD
>
> then just specify the directory value where I have "blah" above
>
>
> Jennifer
> On Mar 9, 2004, at 2:26 AM, Andreas Wendt wrote:
>
> > Leif,
> >
> > is there a chance (in the current version 3.0.5 or in a
> future one) to
> > specifiy the starting directory for the wrapper from
> "outside" (e.g.
> > via an environment variable).
> >
> > I want to integrate with JBoss, but I don't want to copy
> the wrapper
> > files to the jboss directories. Since the wrapper isn't able to use
> > another starting directory other than the executable's (Windows) or
> > the starting script's one (Unix), JBoss will not be able to start
> > properly due to some relative paths when constructing its classpath
> > from its config files.
> >
> > TIA,
> > Andreas
> > -------------------------------------------------------
> This SF.Net
> > email is sponsored by: IBM Linux Tutorials Free Linux tutorial
> > presented by Daniel Robbins, President and CEO of GenToo
> technologies.
> > Learn everything from fundamentals to system
> >
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> Wrapper-user mailing
> > list Wra...@li...
> > https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
|