- Added RPM_OPT_FLAGS - Added axis2c_initBuffer_curl.patch - Added axis2c_useENV_as_repopath.patch - Added axis2c_respectConst_sslCTX.patch
34 lines
1.7 KiB
Diff
34 lines
1.7 KiB
Diff
diff --git a/wsf_c/axis2c/src/core/transport/http/server/simple_axis2_server/http_server_main.c b/wsf_c/axis2c/src/core/transport/http/server/simple_axis2_server/http_server_main.c
|
|
index 5fab472..a37455d 100644
|
|
--- a/wsf_c/axis2c/src/core/transport/http/server/simple_axis2_server/http_server_main.c
|
|
+++ b/wsf_c/axis2c/src/core/transport/http/server/simple_axis2_server/http_server_main.c
|
|
@@ -110,7 +110,11 @@ 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;
|
|
+ axis2_char_t *repo_loc = AXIS2_GETENV("AXIS2C_HOME");
|
|
+ if (! repo_loc) {
|
|
+ repo_loc = DEFAULT_REPO_PATH;
|
|
+ }
|
|
+ const axis2_char_t *repo_path = repo_loc;
|
|
int port = 9090;
|
|
axis2_status_t status;
|
|
|
|
diff --git a/wsf_c/axis2c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c b/wsf_c/axis2c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c
|
|
index 206c223..0040df9 100644
|
|
--- a/wsf_c/axis2c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c
|
|
+++ b/wsf_c/axis2c/src/core/transport/tcp/server/simple_tcp_server/tcp_server_main.c
|
|
@@ -112,7 +112,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_loc = AXIS2_GETENV("AXIS2C_HOME");
|
|
+ if (! repo_loc) {
|
|
+ repo_loc = AXIS2_TCP_SERVER_REPO_PATH;
|
|
+ }
|
|
+ const axis2_char_t *repo_path = repo_loc;
|
|
|
|
while((c = AXIS2_GETOPT(argc, argv, ":p:r:ht:l:s:f:")) != -1)
|
|
{
|