Skip to content

Commit 0362358

Browse files
committed
Remove tomcat dependency for debian
Fix apidocs tests
1 parent cbad307 commit 0362358

File tree

9 files changed

+19
-18
lines changed

9 files changed

+19
-18
lines changed

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@
468468
<webAppSourceDirectory>${project.build.directory}/generated-webapp</webAppSourceDirectory>
469469
<webAppConfig>
470470
<contextPath>/client</contextPath>
471-
<extraClasspath>${project.build.directory}/utilities/scripts/db/;${project.build.directory}/utilities/scripts/db/db/</extraClasspath>
471+
<extraClasspath>${project.build.directory}/conf/;${project.build.directory}/utilities/scripts/db/;${project.build.directory}/utilities/scripts/db/db/</extraClasspath>
472472
</webAppConfig>
473473

474474
<systemProperties>

client/tomcatconf/classpath.conf.in

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# to you under the Apache License, Version 2.0 (the
77
# "License"); you may not use this file except in compliance
88
# with the License. You may obtain a copy of the License at
9-
#
9+
#
1010
# http://www.apache.org/licenses/LICENSE-2.0
11-
#
11+
#
1212
# Unless required by applicable law or agreed to in writing,
1313
# software distributed under the License is distributed on an
1414
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -22,15 +22,20 @@ MCP="@MSCLASSPATH@"
2222
DCP="@DEPSCLASSPATH@"
2323
CLASSPATH=$SCP:$DCP:$MCP:@MSCONF@:@SETUPDATADIR@
2424
for jarfile in "@PREMIUMJAVADIR@"/* ; do
25-
if [ ! -e "$jarfile" ] ; then continue ; fi
26-
CLASSPATH=$jarfile:$CLASSPATH
25+
if [ ! -e "$jarfile" ] ; then continue ; fi
26+
CLASSPATH=$jarfile:$CLASSPATH
2727
done
2828
for plugin in "@PLUGINJAVADIR@"/* ; do
29-
if [ ! -e "$plugin" ] ; then continue ; fi
30-
CLASSPATH=$plugin:$CLASSPATH
29+
if [ ! -e "$plugin" ] ; then continue ; fi
30+
CLASSPATH=$plugin:$CLASSPATH
3131
done
3232
for vendorconf in "@MSCONF@"/vendor/* ; do
33-
if [ ! -d "$vendorconf" ] ; then continue ; fi
34-
CLASSPATH=$vendorconf:$CLASSPATH
33+
if [ ! -d "$vendorconf" ] ; then continue ; fi
34+
CLASSPATH=$vendorconf:$CLASSPATH
3535
done
3636
export CLASSPATH
37+
if ([ -z "$JAVA_HOME" ] || [ ! -d "$JAVA_HOME" ]) && [ -d /usr/lib/jvm/jre-1.7.0 ]; then
38+
export JAVA_HOME=/usr/lib/jvm/jre-1.7.0
39+
fi
40+
PATH=$JAVA_HOME/bin:/sbin:/usr/sbin:$PATH
41+
export PATH

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Description: A common package which contains files which are shared by several C
1515

1616
Package: cloudstack-management
1717
Architecture: all
18-
Depends: ${misc:Depends}, ${python:Depends}, cloudstack-common (= ${source:Version}), tomcat6 | tomcat7 | tomcat8, sudo, jsvc, python-mysqldb, libmysql-java, python-paramiko, augeas-tools, mysql-client, adduser
18+
Depends: ${misc:Depends}, ${python:Depends}, cloudstack-common (= ${source:Version}), sudo, jsvc, python-mysqldb, libmysql-java, python-paramiko, augeas-tools, mysql-client, adduser
1919
Conflicts: cloud-server, cloud-client, cloud-client-ui
2020
Description: CloudStack server library
2121
The CloudStack management server

packaging/centos63/cloud-management.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# tomcat6 This shell script takes care of starting and stopping Tomcat
3+
# cloudstack-management This shell script takes care of starting and stopping Tomcat
44
#
55
# chkconfig: - 80 20
66
#

packaging/centos63/cloud-management.sysconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
# Required for a tocmat cloned service
1918
NAME=cloudstack-management
2019

2120
# Where your java installation lives

packaging/centos7/cloud-management.service

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# under the License.
1717

1818
# Systemd unit file for CloudStack Management server
19-
#
20-
# clone tomcat service, see /usr/lib/systemd/system/tomcat.service
2119

2220
[Unit]
2321
Description=CloudStack Management Server

packaging/centos7/cloud.spec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,8 @@ mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/run
223223

224224
# Specific for tomcat
225225
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/management/Catalina/localhost/client
226-
#ln -sf /usr/share/tomcat/bin ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/bin
227226
cp -r tomcat/target/cloudstack-tomcat-standalone/bin ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/
228227
ln -sf /etc/%{name}/management ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/conf
229-
#ln -sf /usr/share/tomcat/lib ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/lib
230228
cp -r tomcat/target/cloudstack-tomcat-standalone/lib ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/
231229
ln -sf /var/log/%{name}/management ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/logs
232230
ln -sf /var/cache/%{name}/management/temp ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/temp
@@ -358,6 +356,7 @@ if [ ! -f %{_datadir}/cloudstack-common/scripts/vm/hypervisor/xenserver/vhd-util
358356
echo Please download vhd-util from http://download.cloud.com.s3.amazonaws.com/tools/vhd-util and put it in
359357
echo %{_datadir}/cloudstack-common/scripts/vm/hypervisor/xenserver/
360358
fi
359+
chown cloud. %{_localstatedir}/run/%{name}-management.pid
361360

362361
%preun agent
363362
/sbin/service cloudstack-agent stop || true

plugins/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<module>hypervisors/ovm3</module>
7171
<module>network-elements/elastic-loadbalancer</module>
7272
<module>network-elements/ovs</module>
73+
<module>network-elements/juniper-contrail</module>
7374
<module>network-elements/palo-alto</module>
7475
<module>network-elements/netscaler</module>
7576
<module>network-elements/nicira-nvp</module>
@@ -98,7 +99,6 @@
9899
<module>alert-handlers/snmp-alerts</module>
99100
<module>alert-handlers/syslog-alerts</module>
100101
<module>network-elements/internal-loadbalancer</module>
101-
<module>network-elements/juniper-contrail</module>
102102
<module>network-elements/vxlan</module>
103103
<module>network-elements/globodns</module>
104104
</modules>

tools/apidoc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<properties>
2424
<client.config.base>../../client/target/cloud-client-ui-${project.version}/WEB-INF/</client.config.base>
2525
<client.config.jars>${client.config.base}/lib</client.config.jars>
26-
<client.config.conf>${client.config.base}/classes</client.config.conf>
26+
<client.config.conf>../../client/target/conf</client.config.conf>
2727
</properties>
2828

2929
<dependencies>

0 commit comments

Comments
 (0)