Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 50239 invoked from network); 26 Feb 2009 00:21:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 00:21:18 -0000 Received: (qmail 33069 invoked by uid 500); 26 Feb 2009 00:21:17 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 33022 invoked by uid 500); 26 Feb 2009 00:21:17 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 33012 invoked by uid 99); 26 Feb 2009 00:21:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2009 16:21:17 -0800 X-ASF-Spam-Status: No, hits=-1997.2 required=10.0 tests=ALL_TRUSTED,WEIRD_QUOTING X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 00:21:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A3D472388AF5; Thu, 26 Feb 2009 00:20:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r747975 - in /directory/daemon/trunk/plugin/src/main: java/org/apache/directory/daemon/installers/archive/ resources/org/apache/directory/daemon/installers/archive/ Date: Thu, 26 Feb 2009 00:20:50 -0000 To: commits@directory.apache.org From: felixk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090226002050.A3D472388AF5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: felixk Date: Thu Feb 26 00:20:50 2009 New Revision: 747975 URL: http://svn.apache.org/viewvc?rev=747975&view=rev Log: Fix DIRSERVER-1316, borrowed script from apache-tomcat. Added: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/cpappend.bat (with props) Modified: directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/archive/ArchiveInstallerCommand.java directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.bat Modified: directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/archive/ArchiveInstallerCommand.java URL: http://svn.apache.org/viewvc/directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/archive/ArchiveInstallerCommand.java?rev=747975&r1=747974&r2=747975&view=diff ============================================================================== --- directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/archive/ArchiveInstallerCommand.java (original) +++ directory/daemon/trunk/plugin/src/main/java/org/apache/directory/daemon/installers/archive/ArchiveInstallerCommand.java Thu Feb 26 00:20:50 2009 @@ -120,6 +120,10 @@ MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "apacheds.bat" ), new File( targetDirectory, "apacheds.bat" ), false ); + // Copying the cpappend.bat file + MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "cpappend.bat" ), + new File( targetDirectory, "cpappend.bat" ), false ); + // Copying the apacheds.sh file MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "apacheds.sh" ), new File( targetDirectory, "apacheds.sh" ), false ); Modified: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.bat URL: http://svn.apache.org/viewvc/directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.bat?rev=747975&r1=747974&r2=747975&view=diff ============================================================================== --- directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.bat (original) +++ directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.bat Thu Feb 26 00:20:50 2009 @@ -19,9 +19,8 @@ REM --------------------------------- REM dynamically build the classpath REM --------------------------------- -set ADS_CP= -for /F %%a in ('dir lib\ /a /b /-p /o') do set ADS_CP=%ADS_CP%;"lib\%%a" +set ADS_CLASSPATH= +for %%i in (.\lib\*.jar) do call cpappend.bat %%1 +for %%i in (.\lib\ext\*.jar) do call cpappend.bat %%1 -for /F %%a in ('dir lib\ext\ /a /b /-p /o') do set ADS_CP=%ADS_CP%;"lib\ext\%%a" - -java -Dlog4j.configuration="file:conf/log4j.properties" -Dapacheds.log.dir=logs -cp %ADS_CP% org.apache.directory.server.UberjarMain conf\server.xml +java -Dlog4j.configuration="file:conf/log4j.properties" -Dapacheds.log.dir=logs -cp %ADS_CLASSPATH% org.apache.directory.server.UberjarMain conf\server.xml Added: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/cpappend.bat URL: http://svn.apache.org/viewvc/directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/cpappend.bat?rev=747975&view=auto ============================================================================== --- directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/cpappend.bat (added) +++ directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/cpappend.bat Thu Feb 26 00:20:50 2009 @@ -0,0 +1,36 @@ +@echo off +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. + +rem --------------------------------------------------------------------------- +rem Append to CLASSPATH +rem Borrowed from apache-tomcat +rem +rem $Id$ +rem --------------------------------------------------------------------------- + +rem Process the first argument +if ""%1"" == """" goto end +set ADS_CLASSPATH=%ADS_CLASSPATH%;%1 +shift + +rem Process the remaining arguments +:setArgs +if ""%1"" == """" goto doneSetArgs +set ADS_CLASSPATH=%ADS_CLASSPATH% %1 +shift +goto setArgs +:doneSetArgs +:end Propchange: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/cpappend.bat ------------------------------------------------------------------------------ svn:eol-style = native Propchange: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/cpappend.bat ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision