diff --git a/livesupport/bin/user_setup.sh b/livesupport/bin/user_setup.sh
index 3ba22ab04..92f29f582 100755
--- a/livesupport/bin/user_setup.sh
+++ b/livesupport/bin/user_setup.sh
@@ -22,7 +22,7 @@
#
#
# Author : $Author: maroy $
-# Version : $Revision: 1.2 $
+# Version : $Revision: 1.3 $
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/user_setup.sh,v $
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
@@ -271,6 +271,10 @@ cat $modules_dir/archiveServer/var/conf_only.php.template \
| sed -e "$replace_sed_string" \
> $configdir/archiveServer.conf.php
+cat $modules_dir/authentication/etc/webAuthentication.xml.template \
+ | sed -e "$replace_sed_string" \
+ > $configdir/webAuthentication.xml
+
cat $modules_dir/db/etc/connectionManagerFactory.xml.template \
| sed -e "$replace_sed_string" \
> $configdir/connectionManagerFactory.xml
@@ -299,6 +303,10 @@ cat $products_dir/scheduler/etc/scheduler.xml.template \
| sed -e "$replace_sed_string" \
> $configdir/scheduler.xml
+cat $products_dir/gLiveSupport/etc/gLiveSupport.xml.template \
+ | sed -e "$replace_sed_string" \
+ > $configdir/gLiveSupport.xml
+
#-------------------------------------------------------------------------------
# Create the public html directory, and links to the PHP directories
diff --git a/livesupport/modules/authentication/etc/webAuthentication.xml.template b/livesupport/modules/authentication/etc/webAuthentication.xml.template
new file mode 100644
index 000000000..c5bd5dd13
--- /dev/null
+++ b/livesupport/modules/authentication/etc/webAuthentication.xml.template
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+]>
+
+
+
diff --git a/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.cxx b/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.cxx
index f102b6982..56740b840 100644
--- a/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.cxx
+++ b/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.cxx
@@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Author : $Author: fgerlits $
- Version : $Revision: 1.5 $
+ Author : $Author: maroy $
+ Version : $Revision: 1.6 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.cxx,v $
------------------------------------------------------------------------------*/
@@ -62,7 +62,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(AuthenticationClientFactoryTest);
/**
* The name of the configuration file for the authentication client factory.
*/
-static const std::string configFileName = "etc/authenticationClient.xml";
+static const std::string configFileName = "authenticationClient.xml";
/* =============================================== local function prototypes */
@@ -79,9 +79,9 @@ AuthenticationClientFactoryTest :: setUp(void) throw ()
Ptr::Ref
acf = AuthenticationClientFactory::getInstance();
try {
- Ptr::Ref parser(
- new xmlpp::DomParser(configFileName, true));
- const xmlpp::Document * document = parser->get_document();
+ xmlpp::DomParser parser;
+ const xmlpp::Document * document = getConfigDocument(parser,
+ configFileName);
const xmlpp::Element * root = document->get_root_node();
acf->configure(*root);
diff --git a/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.h b/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.h
index 245b3bfee..191e17e6e 100644
--- a/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.h
+++ b/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.h
@@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Author : $Author: fgerlits $
- Version : $Revision: 1.2 $
+ Author : $Author: maroy $
+ Version : $Revision: 1.3 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/src/AuthenticationClientFactoryTest.h,v $
------------------------------------------------------------------------------*/
@@ -42,6 +42,8 @@
#include
+#include "LiveSupport/Core/BaseTestMethod.h"
+
#include "LiveSupport/Authentication/AuthenticationClientFactory.h"
namespace LiveSupport {
@@ -60,11 +62,11 @@ using namespace LiveSupport::Core;
/**
* Unit test for the AuthenticationClientFactory class.
*
- * @author $Author: fgerlits $
- * @version $Revision: 1.2 $
+ * @author $Author: maroy $
+ * @version $Revision: 1.3 $
* @see AuthenticationClientFactory
*/
-class AuthenticationClientFactoryTest : public CPPUNIT_NS::TestFixture
+class AuthenticationClientFactoryTest : public BaseTestMethod
{
CPPUNIT_TEST_SUITE(AuthenticationClientFactoryTest);
CPPUNIT_TEST(firstTest);
diff --git a/livesupport/modules/authentication/src/TestAuthenticationClientTest.cxx b/livesupport/modules/authentication/src/TestAuthenticationClientTest.cxx
index 18d8f8b95..2d324c67f 100644
--- a/livesupport/modules/authentication/src/TestAuthenticationClientTest.cxx
+++ b/livesupport/modules/authentication/src/TestAuthenticationClientTest.cxx
@@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Author : $Author: fgerlits $
- Version : $Revision: 1.6 $
+ Author : $Author: maroy $
+ Version : $Revision: 1.7 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/src/TestAuthenticationClientTest.cxx,v $
------------------------------------------------------------------------------*/
@@ -62,7 +62,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(TestAuthenticationClientTest);
/**
* The name of the configuration file for the authentication client factory.
*/
-static const std::string configFileName = "etc/testAuthentication.xml";
+static const std::string configFileName = "testAuthentication.xml";
/* =============================================== local function prototypes */
@@ -77,9 +77,9 @@ void
TestAuthenticationClientTest :: setUp(void) throw ()
{
try {
- Ptr::Ref parser(
- new xmlpp::DomParser(configFileName, true));
- const xmlpp::Document * document = parser->get_document();
+ xmlpp::DomParser parser;
+ const xmlpp::Document * document = getConfigDocument(parser,
+ configFileName);
const xmlpp::Element * root = document->get_root_node();
tac.reset(new TestAuthenticationClient());
diff --git a/livesupport/modules/authentication/src/TestAuthenticationClientTest.h b/livesupport/modules/authentication/src/TestAuthenticationClientTest.h
index fee4c5c19..8d93ab386 100644
--- a/livesupport/modules/authentication/src/TestAuthenticationClientTest.h
+++ b/livesupport/modules/authentication/src/TestAuthenticationClientTest.h
@@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Author : $Author: fgerlits $
- Version : $Revision: 1.2 $
+ Author : $Author: maroy $
+ Version : $Revision: 1.3 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/src/TestAuthenticationClientTest.h,v $
------------------------------------------------------------------------------*/
@@ -42,6 +42,8 @@
#include
+#include "LiveSupport/Core/BaseTestMethod.h"
+
#include "TestAuthenticationClient.h"
namespace LiveSupport {
@@ -60,11 +62,11 @@ using namespace LiveSupport::Core;
/**
* Unit test for the TestAuthenticationClient class.
*
- * @author $Author: fgerlits $
- * @version $Revision: 1.2 $
+ * @author $Author: maroy $
+ * @version $Revision: 1.3 $
* @see TestAuthenticationClient
*/
-class TestAuthenticationClientTest : public CPPUNIT_NS::TestFixture
+class TestAuthenticationClientTest : public BaseTestMethod
{
CPPUNIT_TEST_SUITE(TestAuthenticationClientTest);
CPPUNIT_TEST(firstTest);
diff --git a/livesupport/modules/authentication/src/WebAuthenticationClientTest.cxx b/livesupport/modules/authentication/src/WebAuthenticationClientTest.cxx
index 2a793654a..beddcd4ee 100644
--- a/livesupport/modules/authentication/src/WebAuthenticationClientTest.cxx
+++ b/livesupport/modules/authentication/src/WebAuthenticationClientTest.cxx
@@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Author : $Author: fgerlits $
- Version : $Revision: 1.9 $
+ Author : $Author: maroy $
+ Version : $Revision: 1.10 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/src/WebAuthenticationClientTest.cxx,v $
------------------------------------------------------------------------------*/
@@ -62,7 +62,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(WebAuthenticationClientTest);
/**
* The name of the configuration file for the authentication client factory.
*/
-static const std::string configFileName = "etc/webAuthentication.xml";
+static const std::string configFileName = "webAuthentication.xml";
/* =============================================== local function prototypes */
@@ -77,9 +77,9 @@ void
WebAuthenticationClientTest :: setUp(void) throw ()
{
try {
- Ptr::Ref parser(
- new xmlpp::DomParser(configFileName, true));
- const xmlpp::Document * document = parser->get_document();
+ xmlpp::DomParser parser;
+ const xmlpp::Document * document = getConfigDocument(parser,
+ configFileName);
const xmlpp::Element * root = document->get_root_node();
wac.reset(new WebAuthenticationClient());
diff --git a/livesupport/modules/authentication/src/WebAuthenticationClientTest.h b/livesupport/modules/authentication/src/WebAuthenticationClientTest.h
index d34203908..e1732f1ba 100644
--- a/livesupport/modules/authentication/src/WebAuthenticationClientTest.h
+++ b/livesupport/modules/authentication/src/WebAuthenticationClientTest.h
@@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Author : $Author: fgerlits $
- Version : $Revision: 1.5 $
+ Author : $Author: maroy $
+ Version : $Revision: 1.6 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/authentication/src/WebAuthenticationClientTest.h,v $
------------------------------------------------------------------------------*/
@@ -42,6 +42,8 @@
#include
+#include "LiveSupport/Core/BaseTestMethod.h"
+
#include "WebAuthenticationClient.h"
namespace LiveSupport {
@@ -60,11 +62,11 @@ using namespace LiveSupport::Core;
/**
* Unit test for the WebAuthenticationClient class.
*
- * @author $Author: fgerlits $
- * @version $Revision: 1.5 $
+ * @author $Author: maroy $
+ * @version $Revision: 1.6 $
* @see WebAuthenticationClient
*/
-class WebAuthenticationClientTest : public CPPUNIT_NS::TestFixture
+class WebAuthenticationClientTest : public BaseTestMethod
{
CPPUNIT_TEST_SUITE(WebAuthenticationClientTest);
CPPUNIT_TEST(firstTest);
diff --git a/livesupport/products/gLiveSupport/bin/gLiveSupport_devenv.sh b/livesupport/products/gLiveSupport/bin/gLiveSupport_devenv.sh
new file mode 100755
index 000000000..8ebb15af4
--- /dev/null
+++ b/livesupport/products/gLiveSupport/bin/gLiveSupport_devenv.sh
@@ -0,0 +1,70 @@
+#!/bin/sh
+#-------------------------------------------------------------------------------# Copyright (c) 2004 Media Development Loan Fund
+#
+# This file is part of the LiveSupport project.
+# http://livesupport.campware.org/
+# To report bugs, send an e-mail to bugs@campware.org
+#
+# LiveSupport is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# LiveSupport is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with LiveSupport; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+#
+# Author : $Author: maroy $
+# Version : $Revision: 1.1 $
+# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/bin/gLiveSupport_devenv.sh,v $
+#-------------------------------------------------------------------------------
+
+#-------------------------------------------------------------------------------
+# System V runlevel style invoke script for the LiveSupport Scheduler
+# This script is only used in the LiveSupport development environment
+#-------------------------------------------------------------------------------
+
+
+#-------------------------------------------------------------------------------
+# Determine directories, files
+#-------------------------------------------------------------------------------
+reldir=`dirname $0`/..
+basedir=`cd $reldir; pwd;`
+bindir=$basedir/bin
+etcdir=$basedir/etc
+libdir=$basedir/lib
+tmpdir=$basedir/tmp
+
+usrdir=`cd $basedir/../../usr; pwd;`
+
+
+#-------------------------------------------------------------------------------
+# Set up the environment
+#-------------------------------------------------------------------------------
+export LD_LIBRARY_PATH=$usrdir/lib:$LD_LIBRARY_PATH
+
+if [ -x $tmpdir/gLiveSupport ]; then
+ gLiveSupport_exe=$tmpdir/gLiveSupport
+else
+ echo "Can't find scheduler executable.";
+fi
+
+if [ -f ~/.livesupport/gLiveSupport.xml ]; then
+ config_file=~/.livesupport/gLiveSupport.xml
+elif [ -f $etcdir/gLiveSupport.xml ]; then
+ config_file=$etcdir/gLiveSupport.xml
+else
+ echo "Can't find configuration file.";
+fi
+
+mode=$1
+
+echo "using configuration file: $config_file";
+
+$gLiveSupport_exe -c $config_file
diff --git a/livesupport/products/gLiveSupport/etc/Makefile.in b/livesupport/products/gLiveSupport/etc/Makefile.in
index d429d6644..c1f208f95 100644
--- a/livesupport/products/gLiveSupport/etc/Makefile.in
+++ b/livesupport/products/gLiveSupport/etc/Makefile.in
@@ -20,8 +20,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#
-# Author : $Author: fgerlits $
-# Version : $Revision: 1.26 $
+# Author : $Author: maroy $
+# Version : $Revision: 1.27 $
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/etc/Makefile.in,v $
#
# @configure_input@
@@ -44,6 +44,7 @@ BASE_DIR = @builddir@
DOC_DIR = ${BASE_DIR}/doc
DOXYGEN_DIR = ${DOC_DIR}/doxygen
COVERAGE_DIR = ${DOC_DIR}/coverage
+BIN_DIR = ${BASE_DIR}/bin
ETC_DIR = ${BASE_DIR}/etc
SRC_DIR = ${BASE_DIR}/src
TMP_DIR = ${BASE_DIR}/tmp
@@ -132,7 +133,7 @@ TEST_RESULTS = ${DOC_DIR}/testResults.xml
TEST_XSLT = ../etc/testResultToHtml.xsl
G_LIVESUPPORT_EXE = ${TMP_DIR}/gLiveSupport
-G_LIVESUPPORT_CFG = ${ETC_DIR}/gLiveSupport.xml
+G_LIVESUPPORT_SH = ${BIN_DIR}/gLiveSupport_devenv.sh
G_LIVESUPPORT_CFG = ${ETC_DIR}/gLiveSupport.xml
TEST_RUNNER = ${TMP_DIR}/testRunner
@@ -255,7 +256,7 @@ run_tests: ${TEST_RUNNER}
${TEST_RUNNER} -o ${TEST_RESULTS} -s ${TEST_XSLT}
run: all
- ${G_LIVESUPPORT_EXE} -c ${G_LIVESUPPORT_CFG}
+ ${G_LIVESUPPORT_SH}
install: ${SCHEDULER_EXE}
-${MAKE} -C ${STORAGE_SERVER_DIR} db_init
diff --git a/livesupport/products/gLiveSupport/etc/gLiveSupport.xml.template b/livesupport/products/gLiveSupport/etc/gLiveSupport.xml.template
new file mode 100644
index 000000000..f82d22dad
--- /dev/null
+++ b/livesupport/products/gLiveSupport/etc/gLiveSupport.xml.template
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+