You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Jarek Gawor <jg...@gmail.com> on 2008/11/07 16:42:04 UTC

Re: svn commit: r712164 - /geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh

Donald,

I'm pretty sure this change will break the script if there is no
jpa.jar in the bin directory.

Jarek

On Fri, Nov 7, 2008 at 10:35 AM,  <dw...@apache.org> wrote:
> Author: dwoods
> Date: Fri Nov  7 07:35:24 2008
> New Revision: 712164
>
> URL: http://svn.apache.org/viewvc?rev=712164&view=rev
> Log:
> GERONIMO-4389 Can't start server via geronimo.sh when install path contains a space.  Thanks to Jun Jie Cai (Jack) for the patch.
>
> Modified:
>    geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>
> Modified: geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
> URL: http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff
> ==============================================================================
> --- geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh (original)
> +++ geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh Fri Nov  7 07:35:24 2008
> @@ -314,7 +314,7 @@
>  elif [ "$1" = "run" ]; then
>   shift
>   exec "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
> -    $JAVA_AGENT_OPTS \
> +    "$JAVA_AGENT_OPTS" \
>     -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>     -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>     -Djava.ext.dirs="$EXT_DIRS" \
> @@ -325,7 +325,7 @@
>   shift
>   touch "$GERONIMO_OUT"
>   $START_OS_CMD "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
> -    $JAVA_AGENT_OPTS \
> +    "$JAVA_AGENT_OPTS" \
>     -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>     -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>     -Djava.ext.dirs="$EXT_DIRS" \
>
>
>

Re: svn commit: r712164 - /geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh

Posted by Donald Woods <dw...@apache.org>.
Once we move everything to GShell, the geronimo.* scripts can be 
deleted.  Until then, allowing Unix/Linux/Mac users to install Geronimo 
into paths with spaces outweighs the requirement for a very few if any 
users who want to remove the jpa.jar to have to edit the script.  We 
could put more code into the script to handle the cases where the jar is 
missing, but I thought we wanted everyone to start using GShell (or 
start opening JIRAs for issues you have with it....)


-Donald


Jarek Gawor wrote:
> I disagree. These scripts might be painful to maintain but they are
> very rarely updated. Switching to GShell might fix some of these
> maintenance problems but at the same time it introduces a number of
> other issues which I think I discussed before. For example, GShell
> will create 2 JVM processes when starting a server or app client,
> control-c does not work right on Windows, there are some weird input
> problems after starting the server in background, or abnormal JVM
> termination in some cases, etc.. If we managed to fix all these
> problems I would be ok with switching to GShell but I'm really in
> favor of keeping geronimo.sh, client.sh, and shutdown.sh scripts as
> they are.
> 
> Jarek
> 
> On Fri, Nov 7, 2008 at 10:47 AM, Jason Dillon <ja...@gmail.com> wrote:
>> Damn these scripts, I really think we should do away with them and use
>> gshell.  Lets *document* the non-gshell ways to java -jar bin/server/jar
>> ..etc... but only ship the gshell commands.
>>
>> --jason
>>
>>
>> On Nov 7, 2008, at 10:42 PM, Jarek Gawor wrote:
>>
>>> Donald,
>>>
>>> I'm pretty sure this change will break the script if there is no
>>> jpa.jar in the bin directory.
>>>
>>> Jarek
>>>
>>> On Fri, Nov 7, 2008 at 10:35 AM,  <dw...@apache.org> wrote:
>>>> Author: dwoods
>>>> Date: Fri Nov  7 07:35:24 2008
>>>> New Revision: 712164
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=712164&view=rev
>>>> Log:
>>>> GERONIMO-4389 Can't start server via geronimo.sh when install path
>>>> contains a space.  Thanks to Jun Jie Cai (Jack) for the patch.
>>>>
>>>> Modified:
>>>>
>>>>  geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>>>
>>>> Modified:
>>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>>> URL:
>>>> http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff
>>>>
>>>> ==============================================================================
>>>> ---
>>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>>> (original)
>>>> +++
>>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>>> Fri Nov  7 07:35:24 2008
>>>> @@ -314,7 +314,7 @@
>>>> elif [ "$1" = "run" ]; then
>>>>  shift
>>>>  exec "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>>>> -    $JAVA_AGENT_OPTS \
>>>> +    "$JAVA_AGENT_OPTS" \
>>>>   -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>>>   -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>>>   -Djava.ext.dirs="$EXT_DIRS" \
>>>> @@ -325,7 +325,7 @@
>>>>  shift
>>>>  touch "$GERONIMO_OUT"
>>>>  $START_OS_CMD "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>>>> -    $JAVA_AGENT_OPTS \
>>>> +    "$JAVA_AGENT_OPTS" \
>>>>   -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>>>   -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>>>   -Djava.ext.dirs="$EXT_DIRS" \
>>>>
>>>>
>>>>
>>
> 

Re: svn commit: r712164 - /geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh

Posted by Jarek Gawor <jg...@gmail.com>.
I disagree. These scripts might be painful to maintain but they are
very rarely updated. Switching to GShell might fix some of these
maintenance problems but at the same time it introduces a number of
other issues which I think I discussed before. For example, GShell
will create 2 JVM processes when starting a server or app client,
control-c does not work right on Windows, there are some weird input
problems after starting the server in background, or abnormal JVM
termination in some cases, etc.. If we managed to fix all these
problems I would be ok with switching to GShell but I'm really in
favor of keeping geronimo.sh, client.sh, and shutdown.sh scripts as
they are.

Jarek

On Fri, Nov 7, 2008 at 10:47 AM, Jason Dillon <ja...@gmail.com> wrote:
> Damn these scripts, I really think we should do away with them and use
> gshell.  Lets *document* the non-gshell ways to java -jar bin/server/jar
> ..etc... but only ship the gshell commands.
>
> --jason
>
>
> On Nov 7, 2008, at 10:42 PM, Jarek Gawor wrote:
>
>> Donald,
>>
>> I'm pretty sure this change will break the script if there is no
>> jpa.jar in the bin directory.
>>
>> Jarek
>>
>> On Fri, Nov 7, 2008 at 10:35 AM,  <dw...@apache.org> wrote:
>>>
>>> Author: dwoods
>>> Date: Fri Nov  7 07:35:24 2008
>>> New Revision: 712164
>>>
>>> URL: http://svn.apache.org/viewvc?rev=712164&view=rev
>>> Log:
>>> GERONIMO-4389 Can't start server via geronimo.sh when install path
>>> contains a space.  Thanks to Jun Jie Cai (Jack) for the patch.
>>>
>>> Modified:
>>>
>>>  geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>>
>>> Modified:
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>> URL:
>>> http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff
>>>
>>> ==============================================================================
>>> ---
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>> (original)
>>> +++
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>> Fri Nov  7 07:35:24 2008
>>> @@ -314,7 +314,7 @@
>>> elif [ "$1" = "run" ]; then
>>>  shift
>>>  exec "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>>> -    $JAVA_AGENT_OPTS \
>>> +    "$JAVA_AGENT_OPTS" \
>>>   -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>>   -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>>   -Djava.ext.dirs="$EXT_DIRS" \
>>> @@ -325,7 +325,7 @@
>>>  shift
>>>  touch "$GERONIMO_OUT"
>>>  $START_OS_CMD "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>>> -    $JAVA_AGENT_OPTS \
>>> +    "$JAVA_AGENT_OPTS" \
>>>   -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>>   -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>>   -Djava.ext.dirs="$EXT_DIRS" \
>>>
>>>
>>>
>
>

Re: svn commit: r712164 - /geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh

Posted by Donald Woods <dw...@apache.org>.
Just waiting for someone to finish the work in trunk to use GShell for 
everything.... :-)


-Donald


Jason Dillon wrote:
> Damn these scripts, I really think we should do away with them and use 
> gshell.  Lets *document* the non-gshell ways to java -jar bin/server/jar 
> ..etc... but only ship the gshell commands.
> 
> --jason
> 
> 
> On Nov 7, 2008, at 10:42 PM, Jarek Gawor wrote:
> 
>> Donald,
>>
>> I'm pretty sure this change will break the script if there is no
>> jpa.jar in the bin directory.
>>
>> Jarek
>>
>> On Fri, Nov 7, 2008 at 10:35 AM,  <dw...@apache.org> wrote:
>>> Author: dwoods
>>> Date: Fri Nov  7 07:35:24 2008
>>> New Revision: 712164
>>>
>>> URL: http://svn.apache.org/viewvc?rev=712164&view=rev
>>> Log:
>>> GERONIMO-4389 Can't start server via geronimo.sh when install path 
>>> contains a space.  Thanks to Jun Jie Cai (Jack) for the patch.
>>>
>>> Modified:
>>>   
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh 
>>>
>>>
>>> Modified: 
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh 
>>>
>>> URL: 
>>> http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff 
>>>
>>> ============================================================================== 
>>>
>>> --- 
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh 
>>> (original)
>>> +++ 
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh 
>>> Fri Nov  7 07:35:24 2008
>>> @@ -314,7 +314,7 @@
>>> elif [ "$1" = "run" ]; then
>>>  shift
>>>  exec "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>>> -    $JAVA_AGENT_OPTS \
>>> +    "$JAVA_AGENT_OPTS" \
>>>    -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>>    -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>>    -Djava.ext.dirs="$EXT_DIRS" \
>>> @@ -325,7 +325,7 @@
>>>  shift
>>>  touch "$GERONIMO_OUT"
>>>  $START_OS_CMD "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>>> -    $JAVA_AGENT_OPTS \
>>> +    "$JAVA_AGENT_OPTS" \
>>>    -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>>    -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>>    -Djava.ext.dirs="$EXT_DIRS" \
>>>
>>>
>>>
> 
> 

Re: svn commit: r712164 - /geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh

Posted by Jason Dillon <ja...@gmail.com>.
Damn these scripts, I really think we should do away with them and use  
gshell.  Lets *document* the non-gshell ways to java -jar bin/server/ 
jar ..etc... but only ship the gshell commands.

--jason


On Nov 7, 2008, at 10:42 PM, Jarek Gawor wrote:

> Donald,
>
> I'm pretty sure this change will break the script if there is no
> jpa.jar in the bin directory.
>
> Jarek
>
> On Fri, Nov 7, 2008 at 10:35 AM,  <dw...@apache.org> wrote:
>> Author: dwoods
>> Date: Fri Nov  7 07:35:24 2008
>> New Revision: 712164
>>
>> URL: http://svn.apache.org/viewvc?rev=712164&view=rev
>> Log:
>> GERONIMO-4389 Can't start server via geronimo.sh when install path  
>> contains a space.  Thanks to Jun Jie Cai (Jack) for the patch.
>>
>> Modified:
>>   geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/ 
>> underlay/contents/bin/geronimo.sh
>>
>> Modified: geronimo/server/trunk/assemblies/geronimo-boilerplate/src/ 
>> main/underlay/contents/bin/geronimo.sh
>> URL: http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> = 
>> =====================================================================
>> --- geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/ 
>> underlay/contents/bin/geronimo.sh (original)
>> +++ geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/ 
>> underlay/contents/bin/geronimo.sh Fri Nov  7 07:35:24 2008
>> @@ -314,7 +314,7 @@
>> elif [ "$1" = "run" ]; then
>>  shift
>>  exec "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>> -    $JAVA_AGENT_OPTS \
>> +    "$JAVA_AGENT_OPTS" \
>>    -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>    -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>    -Djava.ext.dirs="$EXT_DIRS" \
>> @@ -325,7 +325,7 @@
>>  shift
>>  touch "$GERONIMO_OUT"
>>  $START_OS_CMD "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>> -    $JAVA_AGENT_OPTS \
>> +    "$JAVA_AGENT_OPTS" \
>>    -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>    -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>    -Djava.ext.dirs="$EXT_DIRS" \
>>
>>
>>


Re: svn commit: r712164 - /geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh

Posted by Donald Woods <dw...@apache.org>.
Thanks.  Updated patch has been applied.


-Donald


Jack Cai wrote:
> Thanks Donald and Jarek! I provided another patch which hopefully fixes 
> the problem once and for all.
> 
> -Jack
> 
> 2008/11/8 Donald Woods <dwoods@apache.org <ma...@apache.org>>
> 
>     Yes, it will, but we ship bin/jpa.jar in all the minimal and jee5
>     assemblies, so if someone removes it, then they should expect
>     something like this to happen.
> 
>     IMO - users with spaces in the path will be a more common occurrence
>     that those wanting to remove the jpa.jar and worth the change...
> 
> 
>     -Donald
> 
> 
> 
>     Jarek Gawor wrote:
> 
>         Donald,
> 
>         I'm pretty sure this change will break the script if there is no
>         jpa.jar in the bin directory.
> 
>         Jarek
> 
>         On Fri, Nov 7, 2008 at 10:35 AM,  <dwoods@apache.org
>         <ma...@apache.org>> wrote:
> 
>             Author: dwoods
>             Date: Fri Nov  7 07:35:24 2008
>             New Revision: 712164
> 
>             URL: http://svn.apache.org/viewvc?rev=712164&view=rev
>             <http://svn.apache.org/viewvc?rev=712164&view=rev>
>             Log:
>             GERONIMO-4389 Can't start server via geronimo.sh when
>             install path contains a space.  Thanks to Jun Jie Cai (Jack)
>             for the patch.
> 
>             Modified:
>              
>             geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
> 
>             Modified:
>             geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>             URL:
>             http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff
>             <http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff>
>             ==============================================================================
>             ---
>             geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>             (original)
>             +++
>             geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>             Fri Nov  7 07:35:24 2008
>             @@ -314,7 +314,7 @@
>              elif [ "$1" = "run" ]; then
>              shift
>              exec "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>             -    $JAVA_AGENT_OPTS \
>             +    "$JAVA_AGENT_OPTS" \
>                -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>                -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>                -Djava.ext.dirs="$EXT_DIRS" \
>             @@ -325,7 +325,7 @@
>              shift
>              touch "$GERONIMO_OUT"
>              $START_OS_CMD "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>             -    $JAVA_AGENT_OPTS \
>             +    "$JAVA_AGENT_OPTS" \
>                -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>                -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>                -Djava.ext.dirs="$EXT_DIRS" \
> 
> 
> 
> 
> 

Re: svn commit: r712164 - /geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh

Posted by Jack Cai <gr...@gmail.com>.
Thanks Donald and Jarek! I provided another patch which hopefully fixes the
problem once and for all.

-Jack

2008/11/8 Donald Woods <dw...@apache.org>

> Yes, it will, but we ship bin/jpa.jar in all the minimal and jee5
> assemblies, so if someone removes it, then they should expect something like
> this to happen.
>
> IMO - users with spaces in the path will be a more common occurrence that
> those wanting to remove the jpa.jar and worth the change...
>
>
> -Donald
>
>
>
> Jarek Gawor wrote:
>
>> Donald,
>>
>> I'm pretty sure this change will break the script if there is no
>> jpa.jar in the bin directory.
>>
>> Jarek
>>
>> On Fri, Nov 7, 2008 at 10:35 AM,  <dw...@apache.org> wrote:
>>
>>> Author: dwoods
>>> Date: Fri Nov  7 07:35:24 2008
>>> New Revision: 712164
>>>
>>> URL: http://svn.apache.org/viewvc?rev=712164&view=rev
>>> Log:
>>> GERONIMO-4389 Can't start server via geronimo.sh when install path
>>> contains a space.  Thanks to Jun Jie Cai (Jack) for the patch.
>>>
>>> Modified:
>>>
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>>
>>> Modified:
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>> URL:
>>> http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff
>>>
>>> ==============================================================================
>>> ---
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>> (original)
>>> +++
>>> geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>> Fri Nov  7 07:35:24 2008
>>> @@ -314,7 +314,7 @@
>>>  elif [ "$1" = "run" ]; then
>>>  shift
>>>  exec "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>>> -    $JAVA_AGENT_OPTS \
>>> +    "$JAVA_AGENT_OPTS" \
>>>    -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>>    -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>>    -Djava.ext.dirs="$EXT_DIRS" \
>>> @@ -325,7 +325,7 @@
>>>  shift
>>>  touch "$GERONIMO_OUT"
>>>  $START_OS_CMD "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>>> -    $JAVA_AGENT_OPTS \
>>> +    "$JAVA_AGENT_OPTS" \
>>>    -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>>    -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>>    -Djava.ext.dirs="$EXT_DIRS" \
>>>
>>>
>>>
>>>
>>

Re: svn commit: r712164 - /geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh

Posted by Donald Woods <dw...@apache.org>.
Yes, it will, but we ship bin/jpa.jar in all the minimal and jee5 
assemblies, so if someone removes it, then they should expect something 
like this to happen.

IMO - users with spaces in the path will be a more common occurrence 
that those wanting to remove the jpa.jar and worth the change...


-Donald


Jarek Gawor wrote:
> Donald,
> 
> I'm pretty sure this change will break the script if there is no
> jpa.jar in the bin directory.
> 
> Jarek
> 
> On Fri, Nov 7, 2008 at 10:35 AM,  <dw...@apache.org> wrote:
>> Author: dwoods
>> Date: Fri Nov  7 07:35:24 2008
>> New Revision: 712164
>>
>> URL: http://svn.apache.org/viewvc?rev=712164&view=rev
>> Log:
>> GERONIMO-4389 Can't start server via geronimo.sh when install path contains a space.  Thanks to Jun Jie Cai (Jack) for the patch.
>>
>> Modified:
>>    geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>>
>> Modified: geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh
>> URL: http://svn.apache.org/viewvc/geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh?rev=712164&r1=712163&r2=712164&view=diff
>> ==============================================================================
>> --- geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh (original)
>> +++ geronimo/server/trunk/assemblies/geronimo-boilerplate/src/main/underlay/contents/bin/geronimo.sh Fri Nov  7 07:35:24 2008
>> @@ -314,7 +314,7 @@
>>  elif [ "$1" = "run" ]; then
>>   shift
>>   exec "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>> -    $JAVA_AGENT_OPTS \
>> +    "$JAVA_AGENT_OPTS" \
>>     -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>     -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>     -Djava.ext.dirs="$EXT_DIRS" \
>> @@ -325,7 +325,7 @@
>>   shift
>>   touch "$GERONIMO_OUT"
>>   $START_OS_CMD "$_RUNJAVA" $JAVA_OPTS $GERONIMO_OPTS \
>> -    $JAVA_AGENT_OPTS \
>> +    "$JAVA_AGENT_OPTS" \
>>     -Dorg.apache.geronimo.base.dir="$GERONIMO_BASE" \
>>     -Djava.endorsed.dirs="$ENDORSED_DIRS" \
>>     -Djava.ext.dirs="$EXT_DIRS" \
>>
>>
>>
>