axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r293278 - in /webservices/axis2/trunk/c/modules/test: om/maven.xml om/project.xml om/src/test_om.c project.xml
Date Mon, 03 Oct 2005 09:05:06 GMT
Author: samisa
Date: Mon Oct  3 02:04:57 2005
New Revision: 293278

URL: http://svn.apache.org/viewcvs?rev=293278&view=rev
Log:
Added the om system test

Added:
    webservices/axis2/trunk/c/modules/test/om/maven.xml
    webservices/axis2/trunk/c/modules/test/om/project.xml
    webservices/axis2/trunk/c/modules/test/om/src/test_om.c
    webservices/axis2/trunk/c/modules/test/project.xml

Added: webservices/axis2/trunk/c/modules/test/om/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/test/om/maven.xml?rev=293278&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/test/om/maven.xml (added)
+++ webservices/axis2/trunk/c/modules/test/om/maven.xml Mon Oct  3 02:04:57 2005
@@ -0,0 +1,29 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project default="all" xmlns:m="jelly:maven">
+
+  <goal name="build-sub-module">
+     <attainGoal name="nar:compile" />
+  </goal>
+  <goal name="compile-tests">
+     <attainGoal name="nar:compile-tests" />
+  </goal>
+  <goal name="all" prereqs="build-sub-module,compile-tests" />
+
+</project>

Added: webservices/axis2/trunk/c/modules/test/om/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/test/om/project.xml?rev=293278&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/test/om/project.xml (added)
+++ webservices/axis2/trunk/c/modules/test/om/project.xml Mon Oct  3 02:04:57 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project>
+  <extend>../../../project.xml</extend>
+  <id>axis2-xml-om</id>
+  <name>OM Framework</name>
+  <package>axis2.xml.om.*</package>
+  <description>OM project.</description>
+  <shortDescription>OM project</shortDescription>
+
+  <dependencies>
+     <!--dependency>
+        <groupId>j2ee</groupId>
+        <artifactId>j2ee</artifactId>
+        <version>1.3.1</version>
+     </dependency-->
+  </dependencies>
+
+</project>

Added: webservices/axis2/trunk/c/modules/test/om/src/test_om.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/test/om/src/test_om.c?rev=293278&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/test/om/src/test_om.c (added)
+++ webservices/axis2/trunk/c/modules/test/om/src/test_om.c Mon Oct  3 02:04:57 2005
@@ -0,0 +1,36 @@
+#include <apr.h>
+#include <axis2_node.h>
+#include <axis2_om_element.h>
+
+
+int
+main ()
+{
+    if ( apr_initialize () != APR_SUCCESS )
+        return -1;
+    axis2_node_t *ele1, *ele2, *ele3;
+    axis2_om_attribute_t *attr1, *attr2;
+    axis2_om_namespace_t *ns1, *ns2;
+
+
+    ns1 = axis2_om_namespace_create ("ns", "test");
+    ele1 = axis2_om_element_create ("root", ns1, NULL);
+
+    ns2 = axis2_om_namespace_create ("ns1", "test1");
+    ele2 = axis2_om_element_create ("ele1", ns2, ele1);
+
+    attr1 = axis2_om_attribute_create ("ele1", "attr1", ns2);
+
+    axis2_om_element_add_attribute (ele2, attr1);
+
+
+    ele3 = axis2_om_element_create ("ele2", ns2, NULL);
+
+    axis2_node_add_child (ele1, ele2);
+
+
+
+
+
+
+}

Added: webservices/axis2/trunk/c/modules/test/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/test/project.xml?rev=293278&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/test/project.xml (added)
+++ webservices/axis2/trunk/c/modules/test/project.xml Mon Oct  3 02:04:57 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project>
+  <extend>../../project.xml</extend>
+  <id>axis2-xml</id>
+  <name>XML module</name>
+  <package>axis2.xml.*</package>
+  <description>XML module project.</description>
+  <shortDescription>XML module project</shortDescription>
+
+  <dependencies>
+     <!--dependency>
+        <groupId>j2ee</groupId>
+        <artifactId>j2ee</artifactId>
+        <version>1.3.1</version>
+     </dependency-->
+  </dependencies>
+
+</project>



Mime
View raw message