directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Weber" <webe...@gmail.com>
Subject Startup without binary
Date Wed, 07 Feb 2007 20:49:02 GMT
On 2/7/07, Alex Karasulu <akarasulu@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

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

Mime
View raw message