From 75b77e3cb81ace15f6f01da89091b8c9a76cfb24 Mon Sep 17 00:00:00 2001 From: nandika Date: Sun, 19 Dec 2010 10:34:10 +0000 Subject: server code changed to look for axis2c_home first and next get the path from default location git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1050794 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c b/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c index b5f3cd7..f9f0a51 100644 --- a/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c +++ b/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c @@ -129,7 +129,11 @@ main( axutil_log_levels_t log_level = AXIS2_LOG_LEVEL_DEBUG; const axis2_char_t *log_file = AXIS2_TCP_SERVER_LOG_FILE_NAME; int port = AXIS2_TCP_SERVER_PORT; - const axis2_char_t *repo_path = AXIS2_TCP_SERVER_REPO_PATH; + axis2_char_t *repo_path = AXIS2_GETENV("AXIS2C_HOME"); + if(!repo_path) + { + repo_path = AXIS2_TCP_SERVER_REPO_PATH; + } while((c = AXIS2_GETOPT(argc, argv, ":p:r:ht:l:s:f:")) != -1) { -- cgit v1.1-32-gdbae