incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject [2/2] git commit: refs/heads/noa/packaging_rpm_fixes - Revert classpath.conf.in to before .deb packaing merge
Date Thu, 28 Feb 2013 14:24:55 GMT
Updated Branches:
  refs/heads/noa/packaging_rpm_fixes [created] 734b877cf


Revert classpath.conf.in to before .deb packaing merge

This change is apparently incompatible with the centos packaging,
temporarily reverting until we have discussed a proper fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/734b877c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/734b877c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/734b877c

Branch: refs/heads/noa/packaging_rpm_fixes
Commit: 734b877cf5004826b0680231ae3856a715f30dc3
Parents: 71897c3
Author: Noa Resare <noa@spotify.com>
Authored: Thu Feb 28 13:16:16 2013 +0000
Committer: Noa Resare <noa@spotify.com>
Committed: Thu Feb 28 14:21:41 2013 +0000

----------------------------------------------------------------------
 client/tomcatconf/classpath.conf.in |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/734b877c/client/tomcatconf/classpath.conf.in
----------------------------------------------------------------------
diff --git a/client/tomcatconf/classpath.conf.in b/client/tomcatconf/classpath.conf.in
index 5625f69..3ae0fb4 100644
--- a/client/tomcatconf/classpath.conf.in
+++ b/client/tomcatconf/classpath.conf.in
@@ -16,11 +16,23 @@
 # specific language governing permissions and limitations
 # under the License.
 
-# We use WEB-INF/lib in the webapp for including things into
-# the classpath nowdays
-
-for jar in /usr/share/tomcat6/lib/*.jar; do
-    CLASSPATH=$jar:$CLASSPATH
+SYSTEMJARS="@SYSTEMJARS@"
+SCP=$(build-classpath $SYSTEMJARS 2>/dev/null) ; if [ $? != 0 ] ; then export SCP="@SYSTEMCLASSPATH@"
; fi
+MCP="@MSCLASSPATH@"
+DCP="@DEPSCLASSPATH@"
+CLASSPATH=$SCP:$DCP:$MCP:@MSCONF@:@SETUPDATADIR@
+for jarfile in "@PREMIUMJAVADIR@"/* ; do
+	if [ ! -e "$jarfile" ] ; then continue ; fi
+	CLASSPATH=$jarfile:$CLASSPATH
+done
+for plugin in "@PLUGINJAVADIR@"/* ; do
+	if [ ! -e "$plugin" ] ; then continue ; fi
+	CLASSPATH=$plugin:$CLASSPATH
+done
+for vendorconf in "@MSCONF@"/vendor/* ; do
+	if [ ! -d "$vendorconf" ] ; then continue ; fi
+	CLASSPATH=$vendorconf:$CLASSPATH
 done
-CLASSPATH=${CLASSPATH}/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/mysql-connector-java-5.1.21.jar
 export CLASSPATH
+PATH=/sbin:/usr/sbin:$PATH
+export PATH


Mime
View raw message