ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1798138 - in /webservices/axiom/trunk: WORKSPACE implementations/axiom-impl/BUILD testing/axiom-testsuite/BUILD testing/jaxp-testsuite/BUILD testing/xml-testsuite/BUILD
Date Thu, 08 Jun 2017 23:20:40 GMT
Author: veithen
Date: Thu Jun  8 23:20:40 2017
New Revision: 1798138

URL: http://svn.apache.org/viewvc?rev=1798138&view=rev
Log:
Make the axiom-impl tests runnable with Bazel.

Modified:
    webservices/axiom/trunk/WORKSPACE
    webservices/axiom/trunk/implementations/axiom-impl/BUILD
    webservices/axiom/trunk/testing/axiom-testsuite/BUILD
    webservices/axiom/trunk/testing/jaxp-testsuite/BUILD
    webservices/axiom/trunk/testing/xml-testsuite/BUILD

Modified: webservices/axiom/trunk/WORKSPACE
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/WORKSPACE?rev=1798138&r1=1798137&r2=1798138&view=diff
==============================================================================
--- webservices/axiom/trunk/WORKSPACE (original)
+++ webservices/axiom/trunk/WORKSPACE Thu Jun  8 23:20:40 2017
@@ -138,6 +138,12 @@ maven_jar(
 )
 
 maven_jar(
+    name = "xml_apis",
+    artifact = "xml-apis:xml-apis:jar:1.4.01",
+    sha1 = "3789d9fada2d3d458c4ba2de349d48780f381ee3",
+)
+
+maven_jar(
     name = "xmlbeans",
     artifact = "org.apache.xmlbeans:xmlbeans:2.3.0",
     sha1 = "8704dcf5c9f10265a08f5020b0fab70eb64ac3c4",

Modified: webservices/axiom/trunk/implementations/axiom-impl/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/BUILD?rev=1798138&r1=1798137&r2=1798138&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/BUILD (original)
+++ webservices/axiom/trunk/implementations/axiom-impl/BUILD Thu Jun  8 23:20:40 2017
@@ -19,18 +19,47 @@
 
 load('//buildutils:aspectj.bzl', 'aspectj_library')
 
+java_library(
+    name = "factory",
+    srcs = glob(["src/main/java/org/apache/axiom/om/impl/llom/factory/*.java"]),
+    resources = glob(["src/main/resources/**/*"]),
+    deps = [
+        "//aspects/om-aspects",
+        "//axiom-api:locator-loader",
+    ],
+)
+
 aspectj_library(
     name = "axiom-impl",
     srcs = glob([
-        "src/main/java/**/*.java",
-        "src/main/java/**/*.aj",
+        "src/main/java/org/apache/axiom/om/impl/llom/*.java",
+        "src/main/java/org/apache/axiom/soap/impl/llom/**/*.java",
     ]),
     aspects = [
+        ":factory",
         "//aspects/core-aspects",
         "//aspects/om-aspects",
         "//aspects/shared-aspects",
     ],
+)
+
+java_test(
+    name = "om_implementation_test",
+    srcs = ["src/test/java/org/apache/axiom/om/impl/llom/OMImplementationTest.java"],
+    test_class = "org.apache.axiom.om.impl.llom.OMImplementationTest",
+    deps = [
+        ":axiom-impl",
+        "//testing/axiom-testsuite",
+    ],
+)
+
+java_test(
+    name = "soap_implementation_test",
+    srcs = ["src/test/java/org/apache/axiom/soap/impl/llom/SOAPImplementationTest.java"],
+    test_class = "org.apache.axiom.soap.impl.llom.SOAPImplementationTest",
     deps = [
-        "//axiom-api:locator-loader",
+        ":axiom-impl",
+        "//testing/axiom-testsuite",
     ],
 )
+

Modified: webservices/axiom/trunk/testing/axiom-testsuite/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/axiom-testsuite/BUILD?rev=1798138&r1=1798137&r2=1798138&view=diff
==============================================================================
--- webservices/axiom/trunk/testing/axiom-testsuite/BUILD (original)
+++ webservices/axiom/trunk/testing/axiom-testsuite/BUILD Thu Jun  8 23:20:40 2017
@@ -54,6 +54,7 @@ java_library(
     srcs = glob(["src/main/java/**/*.java"]) + [
         ":identity",
     ],
+    resources = glob(["src/main/resources/**/*"]),
     deps = [
         "@commons_codec//jar",
         "@commons_io//jar",

Modified: webservices/axiom/trunk/testing/jaxp-testsuite/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/jaxp-testsuite/BUILD?rev=1798138&r1=1798137&r2=1798138&view=diff
==============================================================================
--- webservices/axiom/trunk/testing/jaxp-testsuite/BUILD (original)
+++ webservices/axiom/trunk/testing/jaxp-testsuite/BUILD Thu Jun  8 23:20:40 2017
@@ -27,6 +27,7 @@ java_library(
         "@saxon//jar",
         "@xalan//jar",
         "@xerces//jar",
+        "@xml_apis//jar",
         "//testing/multiton",
     ],
 )

Modified: webservices/axiom/trunk/testing/xml-testsuite/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/xml-testsuite/BUILD?rev=1798138&r1=1798137&r2=1798138&view=diff
==============================================================================
--- webservices/axiom/trunk/testing/xml-testsuite/BUILD (original)
+++ webservices/axiom/trunk/testing/xml-testsuite/BUILD Thu Jun  8 23:20:40 2017
@@ -17,12 +17,19 @@
 # under the License.
 #
 
-package(default_visibility = ["//visibility:public"])
+genrule(
+    name = "filelist",
+    srcs = glob(["src/main/resources/org/apache/axiom/ts/xml/bulk/*.xml"]),
+    # src/*/resources is magic; see the documentation of java_library.
+    outs = ["src/generated/resources/org/apache/axiom/ts/xml/bulk/filelist"],
+    cmd = "for f in $(SRCS); do echo $$(basename $$f) >> $@; done",
+)
 
 java_library(
     name = "xml-testsuite",
     srcs = glob(["src/main/java/**/*.java"]),
-    resources = glob(["src/main/resources/**/*"]),
+    resources = glob(["src/main/resources/**/*"]) + ["filelist"],
+    visibility = ["//visibility:public"],
     deps = [
         "@commons_codec//jar",
         "@commons_io//jar",



Mime
View raw message