summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c6
1 files changed, 5 insertions, 1 deletions
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)
{