From 4037d09fe0b30ac38bc3bc35be83f444b9782066 Mon Sep 17 00:00:00 2001 From: nandika Date: Sat, 18 Dec 2010 12:12:35 +0000 Subject: fix to look for AXIS2C_HOME first and then at parent directory for axis2.xml git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1050625 13f79535-47bb-0310-9956-ffa450edef68 --- .../transport/http/server/simple_axis2_server/http_server_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/transport/http/server/simple_axis2_server/http_server_main.c b/src/core/transport/http/server/simple_axis2_server/http_server_main.c index cfbcda4..7c895bd 100644 --- a/src/core/transport/http/server/simple_axis2_server/http_server_main.c +++ b/src/core/transport/http/server/simple_axis2_server/http_server_main.c @@ -110,10 +110,15 @@ main( unsigned int file_flag = 0; axutil_log_levels_t log_level = AXIS2_LOG_LEVEL_DEBUG; const axis2_char_t *log_file = "axis2.log"; - const axis2_char_t *repo_path = DEFAULT_REPO_PATH; int port = 9090; axis2_status_t status; + axis2_char_t *repo_path = AXIS2_GETENV("AXIS2C_HOME"); + if(!repo_path) + { + repo_path = DEFAULT_REPO_PATH; + } + /* Set the service URL prefix to be used. This could default to services if not set with AXIS2_REQUEST_URL_PREFIX macro at compile time */ axis2_request_url_prefix = AXIS2_REQUEST_URL_PREFIX; -- cgit v1.1-32-gdbae