diff options
author | nandika | 2010-12-18 12:12:35 +0000 |
---|---|---|
committer | nandika | 2010-12-18 12:12:35 +0000 |
commit | 4037d09fe0b30ac38bc3bc35be83f444b9782066 (patch) | |
tree | b1f9d49db8d6e0d2641b6e794dbdc7bb634486cd /src/core | |
parent | fa3891cd6d6487df7302dbe8ee152251909adef3 (diff) | |
download | axis2c-4037d09fe0b30ac38bc3bc35be83f444b9782066.tar.gz axis2c-4037d09fe0b30ac38bc3bc35be83f444b9782066.tar.bz2 |
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
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/transport/http/server/simple_axis2_server/http_server_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |