ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1798129 - in /webservices/axiom/trunk: ./ axiom-api/ testing/axiom-testsuite/ testing/axiom-truth/ testing/jaxen-testsuite/ testing/jaxp-testsuite/ testing/multiton/ testing/soap-testsuite/ testing/testutils/ testing/xml-testsuite/ testing...
Date Thu, 08 Jun 2017 21:40:42 GMT
Author: veithen
Date: Thu Jun  8 21:40:42 2017
New Revision: 1798129

URL: http://svn.apache.org/viewvc?rev=1798129&view=rev
Log:
Make axiom-testsuite buildable using Bazel.

Added:
    webservices/axiom/trunk/testing/axiom-testsuite/BUILD
    webservices/axiom/trunk/testing/axiom-truth/BUILD
    webservices/axiom/trunk/testing/jaxen-testsuite/BUILD
    webservices/axiom/trunk/testing/jaxp-testsuite/BUILD
    webservices/axiom/trunk/testing/soap-testsuite/BUILD
    webservices/axiom/trunk/testing/xml-testsuite/BUILD
    webservices/axiom/trunk/testing/xml-truth/BUILD
Modified:
    webservices/axiom/trunk/WORKSPACE
    webservices/axiom/trunk/axiom-api/BUILD
    webservices/axiom/trunk/testing/multiton/BUILD
    webservices/axiom/trunk/testing/testutils/BUILD

Modified: webservices/axiom/trunk/WORKSPACE
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/WORKSPACE?rev=1798129&r1=1798128&r2=1798129&view=diff
==============================================================================
--- webservices/axiom/trunk/WORKSPACE (original)
+++ webservices/axiom/trunk/WORKSPACE Thu Jun  8 21:40:42 2017
@@ -30,6 +30,12 @@ maven_jar(
 )
 
 maven_jar(
+    name = "commons_codec",
+    artifact = "commons-codec:commons-codec:1.10",
+    sha1 = "4b95f4897fa13f2cd904aee711aeafc0c5295cd8",
+)
+
+maven_jar(
     name = "commons_io",
     artifact = "commons-io:commons-io:2.2",
     sha1 = "83b5b8a7ba1c08f9e8c8ff2373724e33d3c1e22a",
@@ -42,12 +48,24 @@ maven_jar(
 )
 
 maven_jar(
+    name = "crimson",
+    artifact = "crimson:crimson:1.1.3",
+    sha1 = "31e3dac9777abfec809ad9315f8b5d283cd46c40",
+)
+
+maven_jar(
     name = "guava",
     artifact = "com.google.guava:guava:20.0",
     sha1 = "89507701249388e1ed5ddcf8c41f4ce1be7831ef",
 )
 
 maven_jar(
+    name = "javamail",
+    artifact = "org.apache.geronimo.specs:geronimo-javamail_1.4_spec:1.7.1",
+    sha1 = "43ad4090b1a07a11c82ac40c01fc4e2fbad20013",
+)
+
+maven_jar(
     name = "jaxen",
     artifact = "jaxen:jaxen:1.1.6",
     sha1 = "3f8c36d9a0578e8e98f030c662b69888b1430ac0",
@@ -66,12 +84,24 @@ maven_jar(
 )
 
 maven_jar(
+    name = "mockito_core",
+    artifact = "org.mockito:mockito-core:2.1.0",
+    sha1 = "a8ca233b9d89b6e610b2e29a33ee78698f804843",
+)
+
+maven_jar(
     name = "osgi_core",
     artifact = "org.osgi:org.osgi.core:5.0.0",
     sha1 = "6e5e8cd3c9059c08e1085540442a490b59a7783c",
 )
 
 maven_jar(
+    name = "saxon",
+    artifact = "net.sf.saxon:Saxon-HE:9.7.0-18",
+    sha1 = "b1742ac9973d71bc23b1e8bc3e870a0994fc0ab2",
+)
+
+maven_jar(
     name = "stax2_api",
     artifact = "org.codehaus.woodstox:stax2-api:3.1.1",
     sha1 = "0466eab062e9d1a3ce2c4631b6d09b5e5c0cbd1b",
@@ -82,3 +112,33 @@ maven_jar(
     artifact = "com.google.truth:truth:0.33",
     sha1 = "66c978542e1c4c0b72508c5e3bd7d36481090171",
 )
+
+maven_jar(
+    name = "woodstox",
+    artifact = "org.codehaus.woodstox:woodstox-core-asl:4.2.0",
+    sha1 = "7a3784c65cfa5c0553f31d000b43346feb1f4ee3",
+)
+
+maven_jar(
+    name = "xalan",
+    artifact = "xalan:xalan:2.7.1",
+    sha1 = "75f1d83ce27bab5f29fff034fc74aa9f7266f22a",
+)
+
+maven_jar(
+    name = "xalan_serializer",
+    artifact = "xalan:serializer:2.7.1",
+    sha1 = "4b4b18df434451249bb65a63f2fb69e215a6a020",
+)
+
+maven_jar(
+    name = "xerces",
+    artifact = "xerces:xercesImpl:2.11.0",
+    sha1 = "9bb329db1cfc4e22462c9d6b43a8432f5850e92c",
+)
+
+maven_jar(
+    name = "xmlbeans",
+    artifact = "org.apache.xmlbeans:xmlbeans:2.3.0",
+    sha1 = "8704dcf5c9f10265a08f5020b0fab70eb64ac3c4",
+)

Modified: webservices/axiom/trunk/axiom-api/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/axiom-api/BUILD?rev=1798129&r1=1798128&r2=1798129&view=diff
==============================================================================
--- webservices/axiom/trunk/axiom-api/BUILD (original)
+++ webservices/axiom/trunk/axiom-api/BUILD Thu Jun  8 21:40:42 2017
@@ -93,6 +93,15 @@ java_library(
 )
 
 java_library(
+    name = "util-stax-debug",
+    srcs = glob(["src/main/java/org/apache/axiom/util/stax/debug/*.java"]),
+    deps = [
+        "@commons_logging//jar",
+        ":util-stax-wrapper",
+    ],
+)
+
+java_library(
     name = "blob",
     srcs = glob(["src/main/java/org/apache/axiom/blob/*.java"]),
     deps = [
@@ -147,6 +156,8 @@ java_library(
         "src/main/java/org/apache/axiom/om/xpath/*.java",
         "src/main/java/org/apache/axiom/soap/*.java",
     ]) + [
+        "src/main/java/org/apache/axiom/om/util/AXIOMUtil.java",
+        "src/main/java/org/apache/axiom/om/util/DigestGenerator.java",
         "src/main/java/org/apache/axiom/om/util/CommonUtils.java",
         "src/main/java/org/apache/axiom/om/util/LogOutputStream.java",
     ],

Added: webservices/axiom/trunk/testing/axiom-testsuite/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/axiom-testsuite/BUILD?rev=1798129&view=auto
==============================================================================
--- webservices/axiom/trunk/testing/axiom-testsuite/BUILD (added)
+++ webservices/axiom/trunk/testing/axiom-testsuite/BUILD Thu Jun  8 21:40:42 2017
@@ -0,0 +1,90 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
+
+# TODO: not all rules should be visible
+package(default_visibility = ["//visibility:public"])
+
+genrule(
+    name = "identity",
+    srcs = ["src/main/schemas/identity.xsd"],
+    outs = ["identity.srcjar"],
+    tools = [
+        "@local_jdk//:xjc",
+        "@local_jdk//:jar",
+    ],
+    cmd = """
+        mkdir $(@D)/_srcs;
+        $(location @local_jdk//:xjc) -d $(@D)/_srcs $< > /dev/null;
+        $(location @local_jdk//:jar) cf $@ -C $(@D)/_srcs . > /dev/null;
+        rm -rf $(@D)/_srcs""",
+)
+
+java_binary(
+    name = "scomp",
+    runtime_deps = ["@xmlbeans//jar"],
+    main_class = "org.apache.xmlbeans.impl.tool.SchemaCompiler",
+)
+
+genrule(
+    name = "order",
+    srcs = ["src/main/xsd/order.xsd"],
+    outs = ["order.jar"],
+    tools = [":scomp"],
+    cmd = "$(location :scomp) -out $@ $< > /dev/null",
+)
+
+java_library(
+    name = "axiom-testsuite",
+    srcs = glob(["src/main/java/**/*.java"]) + [
+        ":identity",
+    ],
+    deps = [
+        "@commons_codec//jar",
+        "@commons_io//jar",
+        "@javamail//jar",
+        "@jaxen//jar",
+        "@junit//jar",
+        "@mockito_core//jar",
+        "@truth//jar",
+        "@xalan_serializer//jar",
+        "@xmlbeans//jar",
+        ":order",
+        "//axiom-api",
+        "//axiom-api:blob",
+        "//axiom-api:ext-stax",
+        "//axiom-api:mime",
+        "//axiom-api:stax",
+        "//axiom-api:util",
+        "//axiom-api:util-sax",
+        "//axiom-api:util-stax",
+        "//axiom-api:util-stax-debug",
+        "//axiom-api:util-stax-wrapper",
+        "//components/base64-utils",
+        "//components/core-streams",
+        "//components/xml-utils",
+        "//testing/axiom-truth",
+        "//testing/jaxen-testsuite",
+        "//testing/jaxp-testsuite",
+        "//testing/multiton",
+        "//testing/soap-testsuite",
+        "//testing/testutils",
+        "//testing/xml-testsuite",
+        "//testing/xml-truth",
+    ],
+)

Added: webservices/axiom/trunk/testing/axiom-truth/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/axiom-truth/BUILD?rev=1798129&view=auto
==============================================================================
--- webservices/axiom/trunk/testing/axiom-truth/BUILD (added)
+++ webservices/axiom/trunk/testing/axiom-truth/BUILD Thu Jun  8 21:40:42 2017
@@ -0,0 +1,32 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+java_library(
+    name = "axiom-truth",
+    srcs = glob(["src/main/java/**/*.java"]),
+    resources = glob(["src/main/resources/**/*"]),
+    deps = [
+        "@guava//jar",
+        "@truth//jar",
+        "//axiom-api",
+        "//testing/xml-truth:spi",
+    ],
+)

Added: webservices/axiom/trunk/testing/jaxen-testsuite/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/jaxen-testsuite/BUILD?rev=1798129&view=auto
==============================================================================
--- webservices/axiom/trunk/testing/jaxen-testsuite/BUILD (added)
+++ webservices/axiom/trunk/testing/jaxen-testsuite/BUILD Thu Jun  8 21:40:42 2017
@@ -0,0 +1,30 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+java_library(
+    name = "jaxen-testsuite",
+    srcs = glob(["src/main/java/**/*.java"]),
+    resources = glob(["src/main/resources/**/*"]),
+    deps = [
+        "@jaxen//jar",
+        "@junit//jar",
+    ],
+)

Added: webservices/axiom/trunk/testing/jaxp-testsuite/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/jaxp-testsuite/BUILD?rev=1798129&view=auto
==============================================================================
--- webservices/axiom/trunk/testing/jaxp-testsuite/BUILD (added)
+++ webservices/axiom/trunk/testing/jaxp-testsuite/BUILD Thu Jun  8 21:40:42 2017
@@ -0,0 +1,32 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+java_library(
+    name = "jaxp-testsuite",
+    srcs = glob(["src/main/java/**/*.java"]),
+    deps = [
+        "@crimson//jar",
+        "@saxon//jar",
+        "@xalan//jar",
+        "@xerces//jar",
+        "//testing/multiton",
+    ],
+)

Modified: webservices/axiom/trunk/testing/multiton/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/multiton/BUILD?rev=1798129&r1=1798128&r2=1798129&view=diff
==============================================================================
--- webservices/axiom/trunk/testing/multiton/BUILD (original)
+++ webservices/axiom/trunk/testing/multiton/BUILD Thu Jun  8 21:40:42 2017
@@ -17,6 +17,8 @@
 # under the License.
 #
 
+package(default_visibility = ["//visibility:public"])
+
 java_library(
     name = "multiton",
     srcs = glob(["src/main/java/**/*.java"]),

Added: webservices/axiom/trunk/testing/soap-testsuite/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/soap-testsuite/BUILD?rev=1798129&view=auto
==============================================================================
--- webservices/axiom/trunk/testing/soap-testsuite/BUILD (added)
+++ webservices/axiom/trunk/testing/soap-testsuite/BUILD Thu Jun  8 21:40:42 2017
@@ -0,0 +1,31 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+java_library(
+    name = "soap-testsuite",
+    srcs = glob(["src/main/java/**/*.java"]),
+    resources = glob(["src/main/resources/**/*"]),
+    deps = [
+        "//components/xml-utils",
+        "//testing/multiton",
+        "//testing/xml-testsuite",
+    ],
+)

Modified: webservices/axiom/trunk/testing/testutils/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/testutils/BUILD?rev=1798129&r1=1798128&r2=1798129&view=diff
==============================================================================
--- webservices/axiom/trunk/testing/testutils/BUILD (original)
+++ webservices/axiom/trunk/testing/testutils/BUILD Thu Jun  8 21:40:42 2017
@@ -17,6 +17,8 @@
 # under the License.
 #
 
+package(default_visibility = ["//visibility:public"])
+
 java_library(
     name = "testutils",
     srcs = glob(["src/main/java/**/*.java"]),

Added: webservices/axiom/trunk/testing/xml-testsuite/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/xml-testsuite/BUILD?rev=1798129&view=auto
==============================================================================
--- webservices/axiom/trunk/testing/xml-testsuite/BUILD (added)
+++ webservices/axiom/trunk/testing/xml-testsuite/BUILD Thu Jun  8 21:40:42 2017
@@ -0,0 +1,35 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+java_library(
+    name = "xml-testsuite",
+    srcs = glob(["src/main/java/**/*.java"]),
+    resources = glob(["src/main/resources/**/*"]),
+    deps = [
+        "@commons_codec//jar",
+        "@commons_io//jar",
+        "@javamail//jar",
+        "@stax2_api//jar",
+        "@woodstox//jar",
+        "//testing/multiton",
+        "//testing/testutils",
+    ],
+)

Added: webservices/axiom/trunk/testing/xml-truth/BUILD
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/xml-truth/BUILD?rev=1798129&view=auto
==============================================================================
--- webservices/axiom/trunk/testing/xml-truth/BUILD (added)
+++ webservices/axiom/trunk/testing/xml-truth/BUILD Thu Jun  8 21:40:42 2017
@@ -0,0 +1,37 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+java_library(
+    name = "spi",
+    srcs = glob(["src/main/java/org/apache/axiom/truth/xml/spi/*.java"]),
+)
+
+java_library(
+    name = "xml-truth",
+    srcs = glob(["src/main/java/**/*.java"]),
+    deps = [
+        "@guava//jar",
+        "@stax2_api//jar",
+        "@truth//jar",
+        "@woodstox//jar",
+        ":spi",
+    ],
+)



Mime
View raw message