directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r747059 - in /directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive: apacheds.bat apacheds.sh
Date Mon, 23 Feb 2009 16:09:33 GMT
Author: felixk
Date: Mon Feb 23 16:09:33 2009
New Revision: 747059

URL: http://svn.apache.org/viewvc?rev=747059&view=rev
Log:
Generate used classpath dynamically taking everything into classpath what's in lib and lib/ext.
Due to missing dev environment I couldn't test the windows patch. It's working only 'theoretically'.

Modified:
    directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.bat
    directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.sh

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=747059&r1=747058&r2=747059&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
Mon Feb 23 16:09:33 2009
@@ -15,4 +15,13 @@
 REM  KIND, either express or implied.  See the License for the
 REM  specific language governing permissions and limitations
 REM  under the License.
-java -Dlog4j.configuration="file:conf/log4j.properties" -cp lib/antlr-2.7.7.jar;lib/apacheds-bootstrap-extract-1.5.5-SNAPSHOT.jar;lib/apacheds-bootstrap-partition-1.5.5-SNAPSHOT.jar;lib/apacheds-btree-base-1.5.5-SNAPSHOT.jar;lib/apacheds-core-1.5.5-SNAPSHOT.jar;lib/apacheds-core-avl-1.5.5-SNAPSHOT.jar;lib/apacheds-core-constants-1.5.5-SNAPSHOT.jar;lib/apacheds-core-cursor-1.5.5-SNAPSHOT.jar;lib/apacheds-core-entry-1.5.5-SNAPSHOT.jar;lib/apacheds-core-jndi-1.5.5-SNAPSHOT.jar;lib/apacheds-core-shared-1.5.5-SNAPSHOT.jar;lib/apacheds-jdbm-1.5.5-SNAPSHOT.jar;lib/apacheds-jdbm-store-1.5.5-SNAPSHOT.jar;lib/apacheds-kerberos-shared-1.5.5-SNAPSHOT.jar;lib/apacheds-noarch-installer-1.5.5-SNAPSHOT.jar;lib/apacheds-protocol-changepw-1.5.5-SNAPSHOT.jar;lib/apacheds-protocol-dhcp-1.5.5-SNAPSHOT.jar;lib/apacheds-protocol-dns-1.5.5-SNAPSHOT.jar;lib/apacheds-protocol-kerberos-1.5.5-SNAPSHOT.jar;lib/apacheds-protocol-ldap-1.5.5-SNAPSHOT.jar;lib/apacheds-protocol-ntp-1.5.5-SNAPSHOT.jar;lib/apa
 cheds-protocol-shared-1.5.5-SNAPSHOT.jar;lib/apacheds-schema-bootstrap-1.5.5-SNAPSHOT.jar;lib/apacheds-schema-extras-1.5.5-SNAPSHOT.jar;lib/apacheds-schema-registries-1.5.5-SNAPSHOT.jar;lib/apacheds-server-jndi-1.5.5-SNAPSHOT.jar;lib/apacheds-server-xml-1.5.5-SNAPSHOT.jar;lib/apacheds-utils-1.5.5-SNAPSHOT.jar;lib/apacheds-xbean-spring-1.5.5-SNAPSHOT.jar;lib/apacheds-xdbm-search-1.5.5-SNAPSHOT.jar;lib/apacheds-xdbm-tools-1.5.5-SNAPSHOT.jar;lib/bootstrapper.jar;lib/commons-cli-1.1.jar;lib/commons-collections-3.2.1.jar;lib/commons-daemon-1.0.1.jar;lib/commons-io-1.4.jar;lib/commons-lang-2.4.jar;lib/jcl-over-slf4j-1.4.3.jar;lib/log4j-1.2.14.jar;lib/mina-core-2.0.0-M4.jar;lib/shared-asn1-0.9.14-SNAPSHOT.jar;lib/shared-asn1-codec-0.9.14-SNAPSHOT.jar;lib/shared-bouncycastle-reduced-0.9.14-SNAPSHOT.jar;lib/shared-ldap-0.9.14-SNAPSHOT.jar;lib/shared-ldap-constants-0.9.14-SNAPSHOT.jar;lib/slf4j-api-1.5.2.jar;lib/slf4j-log4j12-1.5.2.jar;lib/spring-beans-2.5.5.jar;lib/spring-context-2.5
 .5.jar;lib/spring-core-2.5.5.jar;lib/xbean-spring-3.4.3.jar org.apache.directory.server.UberjarMain
conf\server.xml
+
+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"
+
+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" -cp %ADS_CP% org.apache.directory.server.UberjarMain
conf\server.xml

Modified: directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.sh
URL: http://svn.apache.org/viewvc/directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.sh?rev=747059&r1=747058&r2=747059&view=diff
==============================================================================
--- directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.sh
(original)
+++ directory/daemon/trunk/plugin/src/main/resources/org/apache/directory/daemon/installers/archive/apacheds.sh
Mon Feb 23 16:09:33 2009
@@ -17,4 +17,19 @@
 #  specific language governing permissions and limitations
 #  under the License.
 #
-java -Dlog4j.configuration=file:conf/log4j.properties -cp lib/antlr-2.7.7.jar:lib/apacheds-bootstrap-extract-1.5.5-SNAPSHOT.jar:lib/apacheds-bootstrap-partition-1.5.5-SNAPSHOT.jar:lib/apacheds-btree-base-1.5.5-SNAPSHOT.jar:lib/apacheds-core-1.5.5-SNAPSHOT.jar:lib/apacheds-core-avl-1.5.5-SNAPSHOT.jar:lib/apacheds-core-constants-1.5.5-SNAPSHOT.jar:lib/apacheds-core-cursor-1.5.5-SNAPSHOT.jar:lib/apacheds-core-entry-1.5.5-SNAPSHOT.jar:lib/apacheds-core-jndi-1.5.5-SNAPSHOT.jar:lib/apacheds-core-shared-1.5.5-SNAPSHOT.jar:lib/apacheds-jdbm-1.5.5-SNAPSHOT.jar:lib/apacheds-jdbm-store-1.5.5-SNAPSHOT.jar:lib/apacheds-kerberos-shared-1.5.5-SNAPSHOT.jar:lib/apacheds-noarch-installer-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-changepw-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-dhcp-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-dns-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-kerberos-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-ldap-1.5.5-SNAPSHOT.jar:lib/apacheds-protocol-ntp-1.5.5-SNAPSHOT.jar:lib/apach
 eds-protocol-shared-1.5.5-SNAPSHOT.jar:lib/apacheds-schema-bootstrap-1.5.5-SNAPSHOT.jar:lib/apacheds-schema-extras-1.5.5-SNAPSHOT.jar:lib/apacheds-schema-registries-1.5.5-SNAPSHOT.jar:lib/apacheds-server-jndi-1.5.5-SNAPSHOT.jar:lib/apacheds-server-xml-1.5.5-SNAPSHOT.jar:lib/apacheds-utils-1.5.5-SNAPSHOT.jar:lib/apacheds-xbean-spring-1.5.5-SNAPSHOT.jar:lib/apacheds-xdbm-search-1.5.5-SNAPSHOT.jar:lib/apacheds-xdbm-tools-1.5.5-SNAPSHOT.jar:lib/bootstrapper.jar:lib/commons-cli-1.1.jar:lib/commons-collections-3.2.1.jar:lib/commons-daemon-1.0.1.jar:lib/commons-io-1.4.jar:lib/commons-lang-2.4.jar:lib/jcl-over-slf4j-1.5.2.jar:lib/log4j-1.2.14.jar:lib/mina-core-2.0.0-M4.jar:lib/shared-asn1-0.9.14-SNAPSHOT.jar:lib/shared-asn1-codec-0.9.14-SNAPSHOT.jar:lib/shared-bouncycastle-reduced-0.9.14-SNAPSHOT.jar:lib/shared-ldap-0.9.14-SNAPSHOT.jar:lib/shared-ldap-constants-0.9.14-SNAPSHOT.jar:lib/slf4j-api-1.5.2.jar:lib/slf4j-log4j12-1.5.2.jar:lib/spring-beans-2.5.5.jar:lib/spring-context-2.5.5
 .jar:lib/spring-core-2.5.5.jar:lib/xbean-spring-3.4.3.jar org.apache.directory.server.UberjarMain
conf/server.xml
+
+#---------------------------------#
+# dynamically build the classpath #
+#---------------------------------#
+ADS_CP=
+for i in `ls ./lib/`
+do
+  ADS_CP=${ADS_CP}:lib/${i}
+done
+
+for i in `ls ./lib/ext/`
+do
+  ADS_CP=${ADS_CP}:lib/ext/${i}
+done
+
+java -Dlog4j.configuration=file:conf/log4j.properties -cp $ADS_CP org.apache.directory.server.UberjarMain
conf/server.xml



Mime
View raw message