|
From:
<el...@mi...> - 2003-12-02 07:02:54
|
That's what I wanted to ask u about, how do I change the scripts in the
batch files?
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]=20
Sent: Saturday, November 29, 2003 8:42 AM
To: wra...@li...
Subject: Re: [Wrapper-user] configuring Wrapper to run to java classes =
to
run as one service. ..
Elhanan,
I am planning to add the ability to set any user directory for the=20
Wrapper in a future
version. But for now, it is not possible to set the user dir to any=20
location other than the
location of the Wrapper.exe file. If you really need the user=20
directory to be in the root
directory, then the only way to do this is to actually place the=20
Wrapper.exe in the root.
This should work. You will have to modify the startup scripts and any=20
other related
paths in the wrapper.conf file. It will work however.
Cheers,
Leif
=E0=EC=E7=F0=EF =EE=F2=E9=E9=EF wrote:
> So is there a possibility to use the wrapper from the root instead of
> sub dir bin?
>
> -----Original Message-----
> From: Leif Mortenson [mailto:le...@ta...]
> Sent: Tuesday, November 25, 2003 4:56 PM
> To: Wrapper User List
> Cc: =E0=EC=E7=F0=EF =EE=F2=E9=E9=EF
> Subject: Re: [Wrapper-user] configuring Wrapper to run to java =
classes
> to run as one service. ..
>
> Elhanan,
> Is this a program that you have written or is it something that=20
> you are simply trying to get integrated with the wrapper. You sent =
me=20
> a lot. I tried looking it all over, but may
> have missed something. It sounds like your only remaining problems =
are
> path related.
>
> One thing that you need to know about how the Wrapper currently=20
> works is that it always sets the current user.dir of the JVM to be =
the=20
> location of the Wrapper.exe file.
> All paths are then relative to this location. So if you create a =
file:
> new File( "tmp/0" )
> then this File object will represent a file called "0", located in a
> directory, "tmp", which
> is located in the current user directory, which is the location of =
the
> Wrapper.exe file.
> If you really want to accessing the tmp directory in the root, =
then
> you need to do the
> following: new File( "/tmp/0" )
> This tells Java to start and the root directory, ignoring the current
> user directory.
>
> It is possible to override the default user.dir when the JVM is=20
> launched by explicitly setting the user.dir property as a system=20
> property. This can be done using the following
> parameter in your wrapper.conf file.
> wrapper.java.additional.1=3D-Duser.dir=3D/
>
> The above sets the user dir to the root directory. Note that =
this=20
> WILL BREAK all relative path handling by the Wrapper and you will =
need=20
> to start specifying fully
> qualified paths in your wrapper.conf file. I don't normally suggest
> this, because path
> problems tend to quickly multiply.
>
> If you have access to the source of the compass application, I=20
> would suggest trying to figure out another way to correct those path=20
> issues from within the application.
> It seems like you should have been having similar problems when =
running
> from a batch
> file. Did that batch file include and cds or anything to change the
> current directory to
> the root?
>
> Cheers,
> Leif
>
> P.S. Please post to the list rather than to me directly. It helps=20
> other to learn by making your questions and my answers searchable.
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
=20
This mail was scanned and found secure
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the sender immediately through the
technological support center,email:he...@mi... and do not disclose the contents to any one or make copies.
|