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

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

Reply via email to