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 da...@apache.org on 2006/01/16 06:31:45 UTC
svn commit: r369354 - in /webservices/axis2/trunk/c:
modules/core/deployment/conf_builder.c test/core/deployment/test_deployment.c
Author: damitha
Date: Sun Jan 15 21:31:37 2006
New Revision: 369354
URL: http://svn.apache.org/viewcvs?rev=369354&view=rev
Log:
get the path from env
Modified:
webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c
webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
Modified: webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c?rev=369354&r1=369353&r2=369354&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c Sun Jan 15 21:31:37 2006
@@ -518,12 +518,15 @@
env, qtype);
if (phase_orders_att)
+ {
flow_type = AXIS2_OM_ATTRIBUTE_GET_VALUE(phase_orders_att, env);
+ printf("flow_type:%s\n", flow_type);
+ }
phase_list = axis2_conf_builder_get_phase_list(conf_builder, env,
phase_orders_node);
if(0 == AXIS2_STRCMP(AXIS2_INFLOWST, flow_type))
- {
+ {
AXIS2_PHASES_INFO_SET_IN_PHASES(info, env, phase_list);
}
else if(0 == AXIS2_STRCMP(AXIS2_IN_FAILTFLOW, flow_type))
@@ -577,13 +580,22 @@
phase_node = (axis2_om_node_t *) AXIS2_OM_CHILDREN_QNAME_ITERATOR_NEXT(
phases, env);
if (phase_node)
- phase_element = (axis2_om_element_t*)AXIS2_OM_NODE_GET_DATA_ELEMENT(phase_node, env);
+ {
+ phase_element = (axis2_om_element_t*)AXIS2_OM_NODE_GET_DATA_ELEMENT(
+ phase_node, env);
+ }
qattname = axis2_qname_create(env, AXIS2_ATTNAME, NULL, NULL);
if (phase_element)
- phase_att = AXIS2_OM_ELEMENT_GET_ATTRIBUTE(phase_element, env, qattname);
+ {
+ phase_att = AXIS2_OM_ELEMENT_GET_ATTRIBUTE(phase_element, env,
+ qattname);
+ }
if (phase_att)
+ {
att_value = AXIS2_OM_ATTRIBUTE_GET_VALUE(phase_att, env);
+ printf("att_value:%s\n", att_value);
+ }
AXIS2_ARRAY_LIST_ADD(phase_list, env, att_value);
AXIS2_QNAME_FREE(qattname, env);
@@ -817,7 +829,7 @@
axis2_transport_listener_t *recv = NULL;
dll_name = AXIS2_OM_ATTRIBUTE_GET_VALUE(trs_dll_name, env);
-
+ printf("dll_name:%s\n", dll_name);
dll_desc = axis2_dll_desc_create(env);
AXIS2_DLL_DESC_SET_NAME(dll_desc, env, dll_name);
AXIS2_DLL_DESC_SET_TYPE(dll_desc, env, AXIS2_HANDLER_DLL);
@@ -827,7 +839,8 @@
AXIS2_PARAM_SET_VALUE(impl_info_param, env, dll_desc);
recv = (axis2_transport_listener_t *)
axis2_class_loader_create_dll(env, impl_info_param);
- AXIS2_TRANSPORT_IN_DESC_SET_RECV(transport_in, env, recv);
+ int stat = AXIS2_TRANSPORT_IN_DESC_SET_RECV(transport_in, env, recv);
+ printf("stat:%d\n", stat);
}
/* process Parameters */
Modified: webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/deployment/test_deployment.c?rev=369354&r1=369353&r2=369354&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/deployment/test_deployment.c (original)
+++ webservices/axis2/trunk/c/test/core/deployment/test_deployment.c Sun Jan 15 21:31:37 2006
@@ -14,18 +14,19 @@
axis2_dep_engine_t *dep_engine = NULL;
axis2_conf_t *conf = NULL;
axis2_array_list_t *in_phases = NULL;
+ axis2_char_t *axis2c_home = NULL;
axis2_allocator_t *allocator = axis2_allocator_init (NULL);
axis2_env_t *env = axis2_env_create (allocator);
+ axis2c_home = AXIS2_GETENV("AXIS2C_HOME");
dep_engine = axis2_dep_engine_create_with_repos_name(&env,
- "/home/damitha/programs/axis2c");
+ axis2c_home);
if(!dep_engine)
{
printf("dep engine is not created \n");
return -1;
}
- printf("came1\n");
conf = AXIS2_DEP_ENGINE_LOAD(dep_engine, &env);
if (!conf)
{
@@ -85,7 +86,7 @@
int main()
{
- /*axis2_test_dep_engine_load(); */
+ axis2_test_dep_engine_load();
axis2_test_engine_conf_builder_populate_conf();
return 0;
}