You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2007/10/06 08:19:49 UTC
svn commit: r582459 - in /webservices/axis2/trunk/c/src/core/transport:
http/server/simple_axis2_server/http_server_main.c
tcp/server/simple_tcp_server/tcp_server_main.c
Author: samisa
Date: Fri Oct 5 23:19:48 2007
New Revision: 582459
URL: http://svn.apache.org/viewvc?rev=582459&view=rev
Log:
Fixed the fixed hardcoded location for repo in the tcp and http servers.
Now the default is ../, but one can give a different location at compile time using a macro
Modified:
webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c
webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c
Modified: webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c?rev=582459&r1=582458&r2=582459&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/server/simple_axis2_server/http_server_main.c Fri Oct 5 23:19:48 2007
@@ -38,6 +38,10 @@
#define AXIS2_HTTP_SERVER_PORT 9090
#endif
+#ifndef AXIS2_HTTP_SERVER_REPO_PATH
+#define AXIS2_HTTP_SERVER_REPO_PATH "../"
+#endif
+
axutil_env_t *system_env = NULL;
axis2_transport_receiver_t *server = NULL;
AXIS2_IMPORT extern int axis2_http_socket_read_timeout;
@@ -111,7 +115,7 @@
axutil_log_levels_t log_level = AXIS2_LOG_LEVEL_DEBUG;
const axis2_char_t *log_file = AXIS2_HTTP_SERVER_LOG_FILE_NAME;
int port = AXIS2_HTTP_SERVER_PORT;
- const axis2_char_t *repo_path = "../";
+ const axis2_char_t *repo_path = AXIS2_HTTP_SERVER_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 */
Modified: webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c?rev=582459&r1=582458&r2=582459&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c Fri Oct 5 23:19:48 2007
@@ -37,6 +37,10 @@
#define AXIS2_TCP_SERVER_PORT 9091
#endif
+#ifndef AXIS2_TCP_SERVER_REPO_PATH
+#define AXIS2_TCP_SERVER_REPO_PATH "../"
+#endif
+
axutil_env_t *system_env = NULL;
axis2_transport_receiver_t *server = NULL;
int axis2_tcp_socket_read_timeout = 60000;
@@ -105,7 +109,7 @@
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 = "../";
+ const axis2_char_t *repo_path = AXIS2_TCP_SERVER_REPO_PATH;
while ((c = AXIS2_GETOPT(argc, argv, ":p:r:ht:l:f:")) != -1)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org