summaryrefslogtreecommitdiffstats
path: root/src/core/transport
diff options
context:
space:
mode:
authorGravatar nandika2010-12-19 10:34:10 +0000
committerGravatar nandika2010-12-19 10:34:10 +0000
commit75b77e3cb81ace15f6f01da89091b8c9a76cfb24 (patch)
tree9b1cabe3e41919816997acc7cc5148062797beab /src/core/transport
parent4037d09fe0b30ac38bc3bc35be83f444b9782066 (diff)
downloadaxis2c-75b77e3cb81ace15f6f01da89091b8c9a76cfb24.tar.gz
axis2c-75b77e3cb81ace15f6f01da89091b8c9a76cfb24.tar.bz2
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
Diffstat (limited to 'src/core/transport')
-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)
{