axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r1050625 - /axis/axis2/c/core/trunk/src/core/transport/http/server/simple_axis2_server/http_server_main.c
Date Sat, 18 Dec 2010 12:12:35 GMT
Author: nandika
Date: Sat Dec 18 12:12:35 2010
New Revision: 1050625

URL: http://svn.apache.org/viewvc?rev=1050625&view=rev
Log:
fix to look for AXIS2C_HOME first and then at parent directory for axis2.xml

Modified:
    axis/axis2/c/core/trunk/src/core/transport/http/server/simple_axis2_server/http_server_main.c

Modified: axis/axis2/c/core/trunk/src/core/transport/http/server/simple_axis2_server/http_server_main.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/transport/http/server/simple_axis2_server/http_server_main.c?rev=1050625&r1=1050624&r2=1050625&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/transport/http/server/simple_axis2_server/http_server_main.c
(original)
+++ axis/axis2/c/core/trunk/src/core/transport/http/server/simple_axis2_server/http_server_main.c
Sat Dec 18 12:12:35 2010
@@ -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;



Mime
View raw message