You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by jt...@apache.org on 2019/04/06 18:04:29 UTC

[incubator-netbeans] 05/05: Making sure platform modules can generate their API signature snapshots

This is an automated email from the ASF dual-hosted git repository.

jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git

commit ce7ef224c98cec2eddf60109fab990e38b5db6d6
Author: Jaroslav Tulach <ja...@oracle.com>
AuthorDate: Sat Apr 6 07:58:12 2019 +0200

    Making sure platform modules can generate their API signature snapshots
---
 .travis.yml                                        |  3 ++
 nbbuild/travis/gensigtest.sh                       | 34 ++++++++++++++++++++++
 .../osgi/annotation/versioning/ConsumerType.java   | 26 +++++++++++++++++
 .../osgi/annotation/versioning/ProviderType.java   | 27 +++++++++++++++++
 4 files changed, 90 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 721d5c4..7fc9e01 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -41,6 +41,9 @@ matrix:
         - env: TARGET="build-platform" SCRIPT=nbbuild/travis/scripting.sh
           jdk: oraclejdk8
 
+        - env: TARGET="build-platform" SCRIPT=nbbuild/travis/gensigtest.sh
+          jdk: oraclejdk8
+
         - env: OPTS="-quiet" TARGET="build-platform"
           jdk: oraclejdk11
 
diff --git a/nbbuild/travis/gensigtest.sh b/nbbuild/travis/gensigtest.sh
new file mode 100755
index 0000000..c1adf6a
--- /dev/null
+++ b/nbbuild/travis/gensigtest.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+# 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.
+
+set -e
+
+# test platform
+echo Making sure platform is built
+if ! ant -Dcluster.config=platform build >build.log 2>&1; then
+    tail -n 1000 build.log
+    exit 1
+fi
+echo Generating signature files
+if ! ant -Dcluster.config=platform gen-sigtests-release >gen.log 2>&1; then
+    tail -n 1000 gen.log
+    exit 2
+fi
+echo Platform is OK
+
diff --git a/platform/netbinox/src/org/osgi/annotation/versioning/ConsumerType.java b/platform/netbinox/src/org/osgi/annotation/versioning/ConsumerType.java
new file mode 100644
index 0000000..90850fb
--- /dev/null
+++ b/platform/netbinox/src/org/osgi/annotation/versioning/ConsumerType.java
@@ -0,0 +1,26 @@
+/*
+ * 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 org.osgi.annotation.versioning;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+@Retention(RetentionPolicy.SOURCE)
+@interface ConsumerType {
+}
diff --git a/platform/netbinox/src/org/osgi/annotation/versioning/ProviderType.java b/platform/netbinox/src/org/osgi/annotation/versioning/ProviderType.java
new file mode 100644
index 0000000..67cf079
--- /dev/null
+++ b/platform/netbinox/src/org/osgi/annotation/versioning/ProviderType.java
@@ -0,0 +1,27 @@
+/*
+ * 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 org.osgi.annotation.versioning;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+@Retention(RetentionPolicy.SOURCE)
+@interface ProviderType {
+}
+


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists