Joerg,

Unfortunately, this isn't going to work, as the CLI regularly requires
more than 9 arguments, and $* is the only way you can get a batch file to
do this. 'shift' should remove the first argument from the list (i.e. the
'cli' bit), but I remember having problems with it.

I know therefore therefore that the CLI with parameters doesn't work well
on non-NT windows systems, because they don't support $*.

So we'll need another way. How can we get 'shift' to work?

Regards, Upayavira

On 19 Jul 2003 14:26:12 -0000, [EMAIL PROTECTED] said:
> joerg       2003/07/19 07:26:12
> 
>   Modified:    .        cocoon.bat
>   Log:
>   I don't know if it's correct, but at least now it's no longer tried to
>   use "cli" as URI. Can someone confirm this?
>   
>   Revision  Changes    Path
>   1.11      +2 -2      cocoon-2.1/cocoon.bat
>   
>   Index: cocoon.bat
>   ===================================================================
>   RCS file: /home/cvs/cocoon-2.1/cocoon.bat,v
>   retrieving revision 1.10
>   retrieving revision 1.11
>   diff -u -r1.10 -r1.11
>   --- cocoon.bat  18 Jul 2003 10:34:00 -0000      1.10
>   +++ cocoon.bat  19 Jul 2003 14:26:11 -0000      1.11
>   @@ -105,7 +105,7 @@
>    :doCli
>    if not "%OS%" == "Windows_NT" goto noNT
>    shift
>   -%JAVA_HOME%\bin\java.exe %JAVA_OPTIONS% -classpath %CP%
>   -Djava.endorsed.dirs=lib\endorsed
>   -Dloader.jar.repositories=%COCOON_LIB%
>   -Dloader.main.class=org.apache.cocoon.Main Loader %*
>   +%JAVA_HOME%\bin\java.exe %JAVA_OPTIONS% -classpath %CP%
>   -Djava.endorsed.dirs=lib\endorsed
>   -Dloader.jar.repositories=%COCOON_LIB%
>   -Dloader.main.class=org.apache.cocoon.Main Loader %1 %2 %3 %4 %5 %6 %7
>   %8 %9
>    goto end
>    :noNT
>    %JAVA_HOME%\bin\java.exe %JAVA_OPTIONS% -classpath %CP%
>    -Djava.endorsed.dirs=lib\endorsed
>    -Dloader.jar.repositories=%COCOON_LIB%
>    -Dloader.main.class=org.apache.cocoon.Main Loader %2 %3 %4 %5 %6 %7 %8
>    %9
>   
>   
>   
> 

Reply via email to