diff options
Diffstat (limited to 'src')
-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; |