Juergen Weber wrote:
On 2/7/07, Alex Karasulu <[EMAIL PROTECTED]> 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



Reply via email to