You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Juergen Weber <we...@gmail.com> on 2007/02/07 21:49:02 UTC

Startup without binary

On 2/7/07, Alex Karasulu <ak...@apache.org> wrote:

> Yeah good idea but the best thing is just to use server-main which can
> build you a nice assembly instead of dealing with a gazillion jars.
>
> See the following:
>
> http://svn.apache.org/repos/asf/directory/apacheds/branches/1.0/server-main/

Using this I figured out a little windows batch:

-----------------------------------------------------------------------------
SET CP=

for /f "tokens=*" %%i in ('dir /b lib\*.jar')  DO call :addcp lib\%%i

for /f "tokens=*" %%i in ('dir /b bin\*.jar')  DO call :addcp bin\%%i
goto :donecp

:addcp
SET CP=%CP%;%1%
goto :eof

:donecp

java -Dlog4j.configuration=conf/log4j.properties -classpath %CP%
org.apache.directory.server.UberjarMain conf/server.xml

-----------------------------------------------------------------------------

Re: Startup without binary

Posted by Alex Karasulu <ak...@apache.org>.
Juergen Weber wrote:
> On 2/7/07, Alex Karasulu <ak...@apache.org> wrote:
> 
>> Yeah good idea but the best thing is just to use server-main which can
>> build you a nice assembly instead of dealing with a gazillion jars.
>>
>> See the following:
>>
>> http://svn.apache.org/repos/asf/directory/apacheds/branches/1.0/server-main/ 
>>
> 
> Using this I figured out a little windows batch:
> 
> ----------------------------------------------------------------------------- 
> 
> SET CP=
> 
> for /f "tokens=*" %%i in ('dir /b lib\*.jar')  DO call :addcp lib\%%i
> 
> for /f "tokens=*" %%i in ('dir /b bin\*.jar')  DO call :addcp bin\%%i
> goto :donecp
> 
> :addcp
> SET CP=%CP%;%1%
> goto :eof
> 
> :donecp
> 
> java -Dlog4j.configuration=conf/log4j.properties -classpath %CP%
> org.apache.directory.server.UberjarMain conf/server.xml
> 
> ----------------------------------------------------------------------------- 
> 

Oh I see you're on windows.  I did not think people used these systems 
anymore :).  Script is greatly appreciated.  Generally these things are 
best put up as attachments in a JIRA and we can apply the patch for you.

Alex