You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2019/08/28 06:06:54 UTC
[dubbo-go] branch 1.1 updated: Fix: delete AlexStocks email in
comment
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch 1.1
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/1.1 by this push:
new 97bd398 Fix: delete AlexStocks email in comment
97bd398 is described below
commit 97bd398d320ebacca94a94feadf6f51728779290
Author: AlexStocks <al...@foxmail.com>
AuthorDate: Wed Aug 28 14:06:40 2019 +0800
Fix: delete AlexStocks email in comment
---
LICENSE | 2 -
cluster/loadbalance/least_active_test.go | 17 ++++++
common/url.go | 2 +
config/config_loader.go | 9 ++-
.../assembly/bin/load.sh | 25 ++++++---
.../assembly/common/app.properties | 26 +++++----
.../assembly/common/build.sh | 24 +++++---
.../assembly/linux/dev.sh | 25 ++++++---
.../assembly/linux/release.sh | 25 ++++++---
.../assembly/linux/test.sh | 25 ++++++---
.../assembly/mac/dev.sh | 25 ++++++---
.../assembly/mac/release.sh | 25 ++++++---
.../assembly/mac/test.sh | 24 +++++---
.../assembly/windows/dev.sh | 25 ++++++---
.../assembly/windows/release.sh | 25 ++++++---
.../assembly/windows/test.sh | 25 ++++++---
.../assembly/bin/load.sh | 25 ++++++---
.../assembly/common/app.properties | 26 +++++----
.../assembly/common/build.sh | 24 +++++---
.../assembly/linux/dev.sh | 25 ++++++---
.../assembly/linux/release.sh | 25 ++++++---
.../assembly/linux/test.sh | 25 ++++++---
.../assembly/mac/dev.sh | 25 ++++++---
.../assembly/mac/release.sh | 25 ++++++---
.../assembly/mac/test.sh | 25 ++++++---
.../assembly/windows/dev.sh | 25 ++++++---
.../assembly/windows/release.sh | 25 ++++++---
.../assembly/windows/test.sh | 25 ++++++---
.../assembly/bin/load.sh | 25 ++++++---
.../assembly/common/app.properties | 26 +++++----
.../assembly/common/build.sh | 26 +++++----
.../assembly/linux/dev.sh | 25 ++++++---
.../assembly/linux/release.sh | 25 ++++++---
.../assembly/linux/test.sh | 25 ++++++---
.../assembly/mac/dev.sh | 25 ++++++---
.../assembly/mac/release.sh | 25 ++++++---
.../assembly/mac/test.sh | 24 +++++---
.../assembly/windows/dev.sh | 25 ++++++---
.../assembly/windows/release.sh | 25 ++++++---
.../assembly/windows/test.sh | 25 ++++++---
.../assembly/bin/load.sh | 25 ++++++---
.../assembly/common/app.properties | 26 +++++----
.../assembly/common/build.sh | 24 +++++---
.../assembly/linux/dev.sh | 25 ++++++---
.../assembly/linux/release.sh | 25 ++++++---
.../assembly/linux/test.sh | 25 ++++++---
.../assembly/mac/dev.sh | 25 ++++++---
.../assembly/mac/release.sh | 25 ++++++---
.../assembly/mac/test.sh | 25 ++++++---
.../assembly/windows/dev.sh | 25 ++++++---
.../assembly/windows/release.sh | 25 ++++++---
.../assembly/windows/test.sh | 25 ++++++---
.../general/dubbo/go-client/assembly/bin/load.sh | 25 ++++++---
.../dubbo/go-client/assembly/common/app.properties | 26 +++++----
.../dubbo/go-client/assembly/common/build.sh | 24 +++++---
.../general/dubbo/go-client/assembly/linux/dev.sh | 25 ++++++---
.../dubbo/go-client/assembly/linux/release.sh | 25 ++++++---
.../general/dubbo/go-client/assembly/linux/test.sh | 25 ++++++---
.../general/dubbo/go-client/assembly/mac/dev.sh | 25 ++++++---
.../dubbo/go-client/assembly/mac/release.sh | 25 ++++++---
.../general/dubbo/go-client/assembly/mac/test.sh | 24 +++++---
.../dubbo/go-client/assembly/windows/dev.sh | 25 ++++++---
.../dubbo/go-client/assembly/windows/release.sh | 25 ++++++---
.../dubbo/go-client/assembly/windows/test.sh | 25 ++++++---
examples/general/dubbo/go-server/app/app | Bin 12412300 -> 0 bytes
.../general/dubbo/go-server/app/user_provider.go | 17 ++++++
.../general/dubbo/go-server/app/user_provider1.go | 17 ++++++
.../general/dubbo/go-server/app/user_provider2.go | 17 ++++++
.../general/dubbo/go-server/assembly/bin/load.sh | 25 ++++++---
.../dubbo/go-server/assembly/common/app.properties | 26 +++++----
.../dubbo/go-server/assembly/common/build.sh | 24 +++++---
.../general/dubbo/go-server/assembly/linux/dev.sh | 25 ++++++---
.../dubbo/go-server/assembly/linux/release.sh | 25 ++++++---
.../general/dubbo/go-server/assembly/linux/test.sh | 25 ++++++---
.../general/dubbo/go-server/assembly/mac/dev.sh | 25 ++++++---
.../dubbo/go-server/assembly/mac/release.sh | 25 ++++++---
.../general/dubbo/go-server/assembly/mac/test.sh | 25 ++++++---
.../dubbo/go-server/assembly/windows/dev.sh | 25 ++++++---
.../dubbo/go-server/assembly/windows/release.sh | 25 ++++++---
.../dubbo/go-server/assembly/windows/test.sh | 25 ++++++---
examples/general/dubbo/java-client/build.sh | 19 +++++--
examples/general/dubbo/java-client/pom.xml | 26 ++++-----
.../java-client/src/main/assembly/assembly.xml | 26 ++++-----
.../src/main/java/com/ikurento/user/Consumer.java | 25 ++++++---
.../src/main/java/com/ikurento/user/Gender.java | 22 ++++++--
.../src/main/java/com/ikurento/user/User.java | 21 +++++--
.../main/java/com/ikurento/user/UserProvider.java | 4 +-
.../resources/META-INF/spring/dubbo.consumer.xml | 26 ++++-----
.../src/main/resources/META-INF/spring/service.xml | 25 ++++-----
examples/general/dubbo/java-server/build.sh | 19 +++++--
examples/general/dubbo/java-server/pom.xml | 14 +++++
examples/general/dubbo/java-server/script/debug.sh | 26 +++++----
.../java-server/src/main/assembly/assembly.xml | 26 ++++-----
.../src/main/java/com/ikurento/user/Gender.java | 17 ++++++
.../src/main/java/com/ikurento/user/Provider.java | 1 +
.../src/main/java/com/ikurento/user/Response.java | 18 +++++-
.../src/main/java/com/ikurento/user/User.java | 18 +++++-
.../main/java/com/ikurento/user/UserProvider.java | 18 +++++-
.../com/ikurento/user/UserProviderAnotherImpl.java | 20 ++++++-
.../java/com/ikurento/user/UserProviderImpl.java | 21 +++++--
.../resources/META-INF/spring/dubbo.provider.xml | 25 ++++-----
.../general/jsonrpc/go-client/assembly/bin/load.sh | 25 ++++++---
.../go-client/assembly/common/app.properties | 26 +++++----
.../jsonrpc/go-client/assembly/common/build.sh | 24 +++++---
.../jsonrpc/go-client/assembly/linux/dev.sh | 25 ++++++---
.../jsonrpc/go-client/assembly/linux/release.sh | 25 ++++++---
.../jsonrpc/go-client/assembly/linux/test.sh | 25 ++++++---
.../general/jsonrpc/go-client/assembly/mac/dev.sh | 25 ++++++---
.../jsonrpc/go-client/assembly/mac/release.sh | 25 ++++++---
.../general/jsonrpc/go-client/assembly/mac/test.sh | 24 +++++---
.../jsonrpc/go-client/assembly/windows/dev.sh | 25 ++++++---
.../jsonrpc/go-client/assembly/windows/release.sh | 25 ++++++---
.../jsonrpc/go-client/assembly/windows/test.sh | 25 ++++++---
.../general/jsonrpc/go-server/assembly/bin/load.sh | 25 ++++++---
.../go-server/assembly/common/app.properties | 26 +++++----
.../jsonrpc/go-server/assembly/common/build.sh | 24 +++++---
.../jsonrpc/go-server/assembly/linux/dev.sh | 25 ++++++---
.../jsonrpc/go-server/assembly/linux/release.sh | 25 ++++++---
.../jsonrpc/go-server/assembly/linux/test.sh | 25 ++++++---
.../general/jsonrpc/go-server/assembly/mac/dev.sh | 25 ++++++---
.../jsonrpc/go-server/assembly/mac/release.sh | 25 ++++++---
.../general/jsonrpc/go-server/assembly/mac/test.sh | 25 ++++++---
.../jsonrpc/go-server/assembly/windows/dev.sh | 25 ++++++---
.../jsonrpc/go-server/assembly/windows/release.sh | 25 ++++++---
.../jsonrpc/go-server/assembly/windows/test.sh | 25 ++++++---
examples/general/jsonrpc/java-client/build.sh | 19 +++++--
examples/general/jsonrpc/java-client/pom.xml | 26 ++++-----
.../java-client/src/main/assembly/assembly.xml | 26 ++++-----
.../src/main/java/com/ikurento/user/Consumer.java | 25 ++++++---
.../src/main/java/com/ikurento/user/Gender.java | 22 ++++++--
.../src/main/java/com/ikurento/user/User.java | 21 +++++--
.../main/java/com/ikurento/user/UserProvider.java | 4 +-
.../resources/META-INF/spring/dubbo.consumer.xml | 24 ++++----
.../src/main/resources/META-INF/spring/service.xml | 24 ++++----
examples/general/jsonrpc/java-server/build.sh | 19 +++++--
examples/general/jsonrpc/java-server/pom.xml | 14 +++++
.../general/jsonrpc/java-server/script/debug.sh | 26 +++++----
.../java-server/src/main/assembly/assembly.xml | 26 ++++-----
.../src/main/java/com/ikurento/user/Gender.java | 17 ++++++
.../src/main/java/com/ikurento/user/Response.java | 18 +++++-
.../src/main/java/com/ikurento/user/User.java | 18 +++++-
.../main/java/com/ikurento/user/UserProvider.java | 18 +++++-
.../com/ikurento/user/UserProviderAnotherImpl.java | 20 ++++++-
.../java/com/ikurento/user/UserProviderImpl.java | 19 ++++++-
.../resources/META-INF/spring/dubbo.provider.xml | 25 ++++-----
examples/generic/go-client/assembly/bin/load.sh | 24 +++++---
.../go-client/assembly/common/app.properties | 27 +++++----
.../generic/go-client/assembly/common/build.sh | 25 ++++++---
examples/generic/go-client/assembly/linux/dev.sh | 24 +++++---
.../generic/go-client/assembly/linux/release.sh | 25 ++++++---
examples/generic/go-client/assembly/linux/test.sh | 25 ++++++---
examples/generic/go-client/assembly/mac/dev.sh | 24 +++++---
examples/generic/go-client/assembly/mac/release.sh | 25 ++++++---
examples/generic/go-client/assembly/mac/test.sh | 25 ++++++---
examples/generic/go-client/assembly/windows/dev.sh | 25 ++++++---
.../generic/go-client/assembly/windows/release.sh | 25 ++++++---
.../generic/go-client/assembly/windows/test.sh | 25 ++++++---
examples/generic/java-server/build.sh | 19 +++++--
examples/generic/java-server/pom.xml | 14 +++++
examples/generic/java-server/script/debug.sh | 26 +++++----
.../java-server/src/main/assembly/assembly.xml | 26 ++++-----
.../src/main/java/com/ikurento/user/Gender.java | 17 ++++++
.../src/main/java/com/ikurento/user/Response.java | 18 +++++-
.../src/main/java/com/ikurento/user/User.java | 18 +++++-
.../main/java/com/ikurento/user/UserProvider.java | 18 +++++-
.../com/ikurento/user/UserProviderAnotherImpl.java | 18 +++++-
.../java/com/ikurento/user/UserProviderImpl.java | 19 ++++++-
.../resources/META-INF/spring/dubbo.provider.xml | 25 ++++-----
.../dubbo/go-client/assembly/bin/load.sh | 24 +++++---
.../dubbo/go-client/assembly/common/app.properties | 27 +++++----
.../dubbo/go-client/assembly/common/build.sh | 25 ++++++---
.../dubbo/go-client/assembly/linux/dev.sh | 25 ++++++---
.../dubbo/go-client/assembly/linux/release.sh | 24 +++++---
.../dubbo/go-client/assembly/linux/test.sh | 24 +++++---
.../helloworld/dubbo/go-client/assembly/mac/dev.sh | 25 ++++++---
.../dubbo/go-client/assembly/mac/release.sh | 25 ++++++---
.../dubbo/go-client/assembly/mac/test.sh | 24 +++++---
.../dubbo/go-client/assembly/windows/dev.sh | 25 ++++++---
.../dubbo/go-client/assembly/windows/release.sh | 25 ++++++---
.../dubbo/go-client/assembly/windows/test.sh | 25 ++++++---
.../dubbo/go-server/assembly/bin/load.sh | 24 +++++---
.../dubbo/go-server/assembly/common/app.properties | 26 +++++----
.../dubbo/go-server/assembly/common/build.sh | 24 +++++---
.../dubbo/go-server/assembly/linux/dev.sh | 25 ++++++---
.../dubbo/go-server/assembly/linux/release.sh | 25 ++++++---
.../dubbo/go-server/assembly/linux/test.sh | 25 ++++++---
.../helloworld/dubbo/go-server/assembly/mac/dev.sh | 25 ++++++---
.../dubbo/go-server/assembly/mac/release.sh | 25 ++++++---
.../dubbo/go-server/assembly/mac/test.sh | 25 ++++++---
.../dubbo/go-server/assembly/windows/dev.sh | 25 ++++++---
.../dubbo/go-server/assembly/windows/release.sh | 25 ++++++---
.../dubbo/go-server/assembly/windows/test.sh | 25 ++++++---
examples/helloworld/dubbo/java-server/build.sh | 19 +++++--
examples/helloworld/dubbo/java-server/pom.xml | 15 +++++
.../helloworld/dubbo/java-server/script/debug.sh | 27 +++++----
.../java-server/src/main/assembly/assembly.xml | 26 ++++-----
.../src/main/java/com/ikurento/user/User.java | 18 +++++-
.../main/java/com/ikurento/user/UserProvider.java | 19 ++++++-
.../java/com/ikurento/user/UserProviderImpl.java | 19 ++++++-
.../resources/META-INF/spring/dubbo.provider.xml | 25 ++++-----
protocol/jsonrpc/http.go | 1 -
registry/directory/directory.go | 2 +-
registry/zookeeper/registry.go | 8 ++-
remoting/zookeeper/client.go | 6 +-
remoting/zookeeper/facade_test.go | 2 +-
remoting/zookeeper/listener.go | 61 ---------------------
206 files changed, 3050 insertions(+), 1619 deletions(-)
diff --git a/LICENSE b/LICENSE
index d80bbda..e76f9d9 100644
--- a/LICENSE
+++ b/LICENSE
@@ -176,8 +176,6 @@
END OF TERMS AND CONDITIONS
- Copyright (c) 2016 ~ 2018 Alex Stocks.
-
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
diff --git a/cluster/loadbalance/least_active_test.go b/cluster/loadbalance/least_active_test.go
index 7663ea3..6bc6985 100644
--- a/cluster/loadbalance/least_active_test.go
+++ b/cluster/loadbalance/least_active_test.go
@@ -1,3 +1,20 @@
+/*
+ * 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 loadbalance
import (
diff --git a/common/url.go b/common/url.go
index 1d63412..084c3d9 100644
--- a/common/url.go
+++ b/common/url.go
@@ -286,7 +286,9 @@ func (c URL) Service() string {
}
func (c *URL) AddParam(key string, value string) {
+ c.paramsLock.Lock()
c.Params.Add(key, value)
+ c.paramsLock.Unlock()
}
func (c URL) GetParam(s string, d string) string {
diff --git a/config/config_loader.go b/config/config_loader.go
index b033ace..dd76289 100644
--- a/config/config_loader.go
+++ b/config/config_loader.go
@@ -36,8 +36,8 @@ var (
maxWait = 3
)
-// loaded comsumer & provider config from xxx.yml, and log config from xxx.xml
-// Namely: dubbo.comsumer.xml & dubbo.provider.xml in java dubbo
+// loaded consumer & provider config from xxx.yml, and log config from xxx.xml
+// Namely: dubbo.consumer.xml & dubbo.provider.xml in java dubbo
func init() {
var (
confConFile, confProFile string
@@ -70,9 +70,8 @@ func Load() {
SetConsumerService(genericService)
}
rpcService := GetConsumerService(key)
-
if rpcService == nil {
- logger.Warnf("%s is not exsist!", key)
+ logger.Warnf("%s does not exist!", key)
continue
}
ref.id = key
@@ -120,7 +119,7 @@ func Load() {
for key, svs := range providerConfig.Services {
rpcService := GetProviderService(key)
if rpcService == nil {
- logger.Warnf("%s is not exsist!", key)
+ logger.Warnf("%s does not exist!", key)
continue
}
svs.id = key
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/bin/load.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/bin/load.sh
index 07d5d15..ffa240b 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/bin/load.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/bin/load.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
+
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/common/app.properties b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/common/app.properties
index 6bbd6db..e10868f 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/common/app.properties
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : dubbogo environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
export TARGET_EXEC_NAME="user_info_client"
# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/common/build.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/common/build.sh
index e724182..c9a9e87 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/common/build.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/dev.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/dev.sh
index 3373f01..eada737 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/dev.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/release.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/release.sh
index 34867b8..10eb3d7 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/release.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/test.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/test.sh
index 1bbbefd..78b650c 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/test.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/dev.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/dev.sh
index b68ac83..c828476 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/dev.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/release.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/release.sh
index 688288b..91c2dfe 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/release.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/test.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/test.sh
index 56d6c11..a7853f5 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/test.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/mac/test.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/dev.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/dev.sh
index 91cf6f2..10a3866 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/dev.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/release.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/release.sh
index f317720..21af573 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/release.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/test.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/test.sh
index 7dd2bec..2104da8 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/test.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-client/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/bin/load.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/bin/load.sh
index 47fc5e3..90077c2 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/bin/load.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/bin/load.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
+
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/common/app.properties b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/common/app.properties
index dffb755..1f0827e 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/common/app.properties
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : application environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
TARGET_EXEC_NAME="user_info_server"
# BUILD_PACKAGE="dubbogo-examples/user-info/server/app"
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/common/build.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/common/build.sh
index 15ac904..89a95ce 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/common/build.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/dev.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/dev.sh
index 55886f0..d830ac9 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/dev.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/release.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/release.sh
index 9772ad9..9930380 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/release.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/test.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/test.sh
index 2fc4a98..87144bb 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/test.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/dev.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/dev.sh
index 5dfa784..3a7659b 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/dev.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/release.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/release.sh
index 1ec21c7..1c4bce4 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/release.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/test.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/test.sh
index d34914c..69206e3 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/test.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/mac/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/dev.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/dev.sh
index 97fbb6f..011fb41 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/dev.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:34
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/release.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/release.sh
index 782cb10..679a26a 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/release.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/test.sh b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/test.sh
index 2037dde..4a36de0 100644
--- a/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/test.sh
+++ b/examples/configcenter/zookeeper/dubbo/with-configcenter-go-server/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/bin/load.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/bin/load.sh
index 07d5d15..ffa240b 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/bin/load.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/bin/load.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
+
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/common/app.properties b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/common/app.properties
index 6bbd6db..e10868f 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/common/app.properties
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : dubbogo environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
export TARGET_EXEC_NAME="user_info_client"
# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/common/build.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/common/build.sh
index 06b212d..c9a9e87 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/common/build.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
@@ -15,7 +21,7 @@ PROJECT_HOME=`pwd`
TARGET_FOLDER=${PROJECT_HOME}/target/${GOOS}
TARGET_SBIN_NAME=${TARGET_EXEC_NAME}
-version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
+version=`cat app/version.go | grep Version | grep -v "Apache" | awk -F '=' '{print $2}' | awk -F '"' '{print $2}'`
if [[ ${GOOS} == "windows" ]]; then
TARGET_SBIN_NAME=${TARGET_SBIN_NAME}.exe
fi
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/dev.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/dev.sh
index 3373f01..eada737 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/dev.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/release.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/release.sh
index 34867b8..10eb3d7 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/release.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/test.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/test.sh
index 1bbbefd..78b650c 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/test.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/dev.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/dev.sh
index b68ac83..c828476 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/dev.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/release.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/release.sh
index 688288b..91c2dfe 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/release.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/test.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/test.sh
index 56d6c11..a7853f5 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/test.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/mac/test.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/dev.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/dev.sh
index 91cf6f2..10a3866 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/dev.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/release.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/release.sh
index f317720..21af573 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/release.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/test.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/test.sh
index 7dd2bec..2104da8 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/test.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-client/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/bin/load.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/bin/load.sh
index 47fc5e3..90077c2 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/bin/load.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/bin/load.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
+
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/common/app.properties b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/common/app.properties
index dffb755..1f0827e 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/common/app.properties
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : application environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
TARGET_EXEC_NAME="user_info_server"
# BUILD_PACKAGE="dubbogo-examples/user-info/server/app"
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/common/build.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/common/build.sh
index 15ac904..89a95ce 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/common/build.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/dev.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/dev.sh
index 55886f0..d830ac9 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/dev.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/release.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/release.sh
index 9772ad9..9930380 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/release.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/test.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/test.sh
index 2fc4a98..87144bb 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/test.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/dev.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/dev.sh
index 5dfa784..3a7659b 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/dev.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/release.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/release.sh
index 1ec21c7..1c4bce4 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/release.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/test.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/test.sh
index d34914c..69206e3 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/test.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/mac/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/dev.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/dev.sh
index 97fbb6f..011fb41 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/dev.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:34
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/release.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/release.sh
index 782cb10..679a26a 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/release.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/test.sh b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/test.sh
index 2037dde..4a36de0 100644
--- a/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/test.sh
+++ b/examples/configcenter/zookeeper/jsonrpc/with-configcenter-go-server/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/bin/load.sh b/examples/general/dubbo/go-client/assembly/bin/load.sh
index 07d5d15..ffa240b 100644
--- a/examples/general/dubbo/go-client/assembly/bin/load.sh
+++ b/examples/general/dubbo/go-client/assembly/bin/load.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
+
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/general/dubbo/go-client/assembly/common/app.properties b/examples/general/dubbo/go-client/assembly/common/app.properties
index 6bbd6db..e10868f 100644
--- a/examples/general/dubbo/go-client/assembly/common/app.properties
+++ b/examples/general/dubbo/go-client/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : dubbogo environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
export TARGET_EXEC_NAME="user_info_client"
# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
diff --git a/examples/general/dubbo/go-client/assembly/common/build.sh b/examples/general/dubbo/go-client/assembly/common/build.sh
index e724182..c9a9e87 100644
--- a/examples/general/dubbo/go-client/assembly/common/build.sh
+++ b/examples/general/dubbo/go-client/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
diff --git a/examples/general/dubbo/go-client/assembly/linux/dev.sh b/examples/general/dubbo/go-client/assembly/linux/dev.sh
index 3373f01..eada737 100644
--- a/examples/general/dubbo/go-client/assembly/linux/dev.sh
+++ b/examples/general/dubbo/go-client/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/linux/release.sh b/examples/general/dubbo/go-client/assembly/linux/release.sh
index 34867b8..10eb3d7 100644
--- a/examples/general/dubbo/go-client/assembly/linux/release.sh
+++ b/examples/general/dubbo/go-client/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/linux/test.sh b/examples/general/dubbo/go-client/assembly/linux/test.sh
index 1bbbefd..78b650c 100644
--- a/examples/general/dubbo/go-client/assembly/linux/test.sh
+++ b/examples/general/dubbo/go-client/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/mac/dev.sh b/examples/general/dubbo/go-client/assembly/mac/dev.sh
index b68ac83..c828476 100644
--- a/examples/general/dubbo/go-client/assembly/mac/dev.sh
+++ b/examples/general/dubbo/go-client/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/mac/release.sh b/examples/general/dubbo/go-client/assembly/mac/release.sh
index 688288b..91c2dfe 100644
--- a/examples/general/dubbo/go-client/assembly/mac/release.sh
+++ b/examples/general/dubbo/go-client/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/mac/test.sh b/examples/general/dubbo/go-client/assembly/mac/test.sh
index 56d6c11..a7853f5 100644
--- a/examples/general/dubbo/go-client/assembly/mac/test.sh
+++ b/examples/general/dubbo/go-client/assembly/mac/test.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/windows/dev.sh b/examples/general/dubbo/go-client/assembly/windows/dev.sh
index 91cf6f2..10a3866 100644
--- a/examples/general/dubbo/go-client/assembly/windows/dev.sh
+++ b/examples/general/dubbo/go-client/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/windows/release.sh b/examples/general/dubbo/go-client/assembly/windows/release.sh
index f317720..21af573 100644
--- a/examples/general/dubbo/go-client/assembly/windows/release.sh
+++ b/examples/general/dubbo/go-client/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-client/assembly/windows/test.sh b/examples/general/dubbo/go-client/assembly/windows/test.sh
index 7dd2bec..2104da8 100644
--- a/examples/general/dubbo/go-client/assembly/windows/test.sh
+++ b/examples/general/dubbo/go-client/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/app/app b/examples/general/dubbo/go-server/app/app
deleted file mode 100755
index 43e170c..0000000
Binary files a/examples/general/dubbo/go-server/app/app and /dev/null differ
diff --git a/examples/general/dubbo/go-server/app/user_provider.go b/examples/general/dubbo/go-server/app/user_provider.go
index fdf0a3a..aeb5ad5 100644
--- a/examples/general/dubbo/go-server/app/user_provider.go
+++ b/examples/general/dubbo/go-server/app/user_provider.go
@@ -1,3 +1,20 @@
+/*
+ * 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 main
import (
diff --git a/examples/general/dubbo/go-server/app/user_provider1.go b/examples/general/dubbo/go-server/app/user_provider1.go
index 3edc816..f1a3abf 100644
--- a/examples/general/dubbo/go-server/app/user_provider1.go
+++ b/examples/general/dubbo/go-server/app/user_provider1.go
@@ -1,3 +1,20 @@
+/*
+ * 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 main
import (
diff --git a/examples/general/dubbo/go-server/app/user_provider2.go b/examples/general/dubbo/go-server/app/user_provider2.go
index d28bcc3..b4a6937 100644
--- a/examples/general/dubbo/go-server/app/user_provider2.go
+++ b/examples/general/dubbo/go-server/app/user_provider2.go
@@ -1,3 +1,20 @@
+/*
+ * 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 main
import (
diff --git a/examples/general/dubbo/go-server/assembly/bin/load.sh b/examples/general/dubbo/go-server/assembly/bin/load.sh
index 47fc5e3..90077c2 100644
--- a/examples/general/dubbo/go-server/assembly/bin/load.sh
+++ b/examples/general/dubbo/go-server/assembly/bin/load.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
+
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/general/dubbo/go-server/assembly/common/app.properties b/examples/general/dubbo/go-server/assembly/common/app.properties
index dffb755..1f0827e 100644
--- a/examples/general/dubbo/go-server/assembly/common/app.properties
+++ b/examples/general/dubbo/go-server/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : application environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
TARGET_EXEC_NAME="user_info_server"
# BUILD_PACKAGE="dubbogo-examples/user-info/server/app"
diff --git a/examples/general/dubbo/go-server/assembly/common/build.sh b/examples/general/dubbo/go-server/assembly/common/build.sh
index 15ac904..89a95ce 100644
--- a/examples/general/dubbo/go-server/assembly/common/build.sh
+++ b/examples/general/dubbo/go-server/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
diff --git a/examples/general/dubbo/go-server/assembly/linux/dev.sh b/examples/general/dubbo/go-server/assembly/linux/dev.sh
index 55886f0..d830ac9 100644
--- a/examples/general/dubbo/go-server/assembly/linux/dev.sh
+++ b/examples/general/dubbo/go-server/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/assembly/linux/release.sh b/examples/general/dubbo/go-server/assembly/linux/release.sh
index 9772ad9..9930380 100644
--- a/examples/general/dubbo/go-server/assembly/linux/release.sh
+++ b/examples/general/dubbo/go-server/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/assembly/linux/test.sh b/examples/general/dubbo/go-server/assembly/linux/test.sh
index 2fc4a98..87144bb 100644
--- a/examples/general/dubbo/go-server/assembly/linux/test.sh
+++ b/examples/general/dubbo/go-server/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/assembly/mac/dev.sh b/examples/general/dubbo/go-server/assembly/mac/dev.sh
index 5dfa784..3a7659b 100644
--- a/examples/general/dubbo/go-server/assembly/mac/dev.sh
+++ b/examples/general/dubbo/go-server/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/assembly/mac/release.sh b/examples/general/dubbo/go-server/assembly/mac/release.sh
index 1ec21c7..1c4bce4 100644
--- a/examples/general/dubbo/go-server/assembly/mac/release.sh
+++ b/examples/general/dubbo/go-server/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/assembly/mac/test.sh b/examples/general/dubbo/go-server/assembly/mac/test.sh
index d34914c..69206e3 100644
--- a/examples/general/dubbo/go-server/assembly/mac/test.sh
+++ b/examples/general/dubbo/go-server/assembly/mac/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/assembly/windows/dev.sh b/examples/general/dubbo/go-server/assembly/windows/dev.sh
index 97fbb6f..011fb41 100644
--- a/examples/general/dubbo/go-server/assembly/windows/dev.sh
+++ b/examples/general/dubbo/go-server/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:34
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/assembly/windows/release.sh b/examples/general/dubbo/go-server/assembly/windows/release.sh
index 782cb10..679a26a 100644
--- a/examples/general/dubbo/go-server/assembly/windows/release.sh
+++ b/examples/general/dubbo/go-server/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/go-server/assembly/windows/test.sh b/examples/general/dubbo/go-server/assembly/windows/test.sh
index 2037dde..4a36de0 100644
--- a/examples/general/dubbo/go-server/assembly/windows/test.sh
+++ b/examples/general/dubbo/go-server/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/dubbo/java-client/build.sh b/examples/general/dubbo/java-client/build.sh
index 1286b53..c869acf 100644
--- a/examples/general/dubbo/java-client/build.sh
+++ b/examples/general/dubbo/java-client/build.sh
@@ -1,8 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# EMAIL : alexstocks@foxmail.com
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
# rm src/main/resources/META-INF/spring/dubbo.consumer.xml
# cp src/main/resources/META-INF/spring/dubbo-protocol.consumer.xml src/main/resources/META-INF/spring/dubbo.consumer.xml
diff --git a/examples/general/dubbo/java-client/pom.xml b/examples/general/dubbo/java-client/pom.xml
index c3e3464..4065414 100755
--- a/examples/general/dubbo/java-client/pom.xml
+++ b/examples/general/dubbo/java-client/pom.xml
@@ -1,18 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
diff --git a/examples/general/dubbo/java-client/src/main/assembly/assembly.xml b/examples/general/dubbo/java-client/src/main/assembly/assembly.xml
index 25235d9..47757d1 100644
--- a/examples/general/dubbo/java-client/src/main/assembly/assembly.xml
+++ b/examples/general/dubbo/java-client/src/main/assembly/assembly.xml
@@ -1,18 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<assembly>
<id>assembly</id>
<formats>
diff --git a/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/Consumer.java b/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/Consumer.java
index 5c9870e..dc11dba 100644
--- a/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/Consumer.java
+++ b/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/Consumer.java
@@ -1,12 +1,19 @@
-// *****************************************************
-// DESC : dubbo consumer
-// AUTHOR : writtey by 包增辉(https://github.com/baozh)
-// VERSION : 1.0
-// LICENCE : Apache License 2.0
-// EMAIL : alexstocks@foxmail.com
-// MOD : 2016-10-19 17:03
-// FILE : Consumer.java
-// ******************************************************
+/*
+ * 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 com.ikurento.user;
diff --git a/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/Gender.java b/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/Gender.java
index 7bcfae3..e606be7 100644
--- a/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/Gender.java
+++ b/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/Gender.java
@@ -1,10 +1,22 @@
-package com.ikurento.user;
+/*
+ * 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.
+ */
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
+package com.ikurento.user;
-/**
- * Created by wuwen on 15/4/7.
- */
public enum Gender {
MAN,
WOMAN
diff --git a/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/User.java b/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/User.java
index 6966210..7f228b3 100644
--- a/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/User.java
+++ b/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/User.java
@@ -1,11 +1,24 @@
+/*
+ * 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 com.ikurento.user;
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.Date;
-/**
- * Created by wuwen on 15/4/7.
- */
public class User {
private String id;
diff --git a/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/UserProvider.java b/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/UserProvider.java
index ed765d4..a330d98 100644
--- a/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/UserProvider.java
+++ b/examples/general/dubbo/java-client/src/main/java/com/ikurento/user/UserProvider.java
@@ -1,6 +1,4 @@
/*
- * Copyright 1999-2011 Alibaba Group.
- *
* 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
@@ -13,8 +11,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.ikurento.user;
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.List;
diff --git a/examples/general/dubbo/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml b/examples/general/dubbo/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml
index e7e5445..67c6264 100644
--- a/examples/general/dubbo/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml
+++ b/examples/general/dubbo/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
+
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
diff --git a/examples/general/dubbo/java-client/src/main/resources/META-INF/spring/service.xml b/examples/general/dubbo/java-client/src/main/resources/META-INF/spring/service.xml
index db9fc3c..041d7c3 100644
--- a/examples/general/dubbo/java-client/src/main/resources/META-INF/spring/service.xml
+++ b/examples/general/dubbo/java-client/src/main/resources/META-INF/spring/service.xml
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
diff --git a/examples/general/dubbo/java-server/build.sh b/examples/general/dubbo/java-server/build.sh
index 0c197da..7b5755b 100644
--- a/examples/general/dubbo/java-server/build.sh
+++ b/examples/general/dubbo/java-server/build.sh
@@ -1,8 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# EMAIL : alexstocks@foxmail.com
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
# mvn dependency:sources
mvn clean package -Dmaven.test.skip
diff --git a/examples/general/dubbo/java-server/pom.xml b/examples/general/dubbo/java-server/pom.xml
index 9751578..9b811e9 100644
--- a/examples/general/dubbo/java-server/pom.xml
+++ b/examples/general/dubbo/java-server/pom.xml
@@ -1,4 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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 xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
diff --git a/examples/general/dubbo/java-server/script/debug.sh b/examples/general/dubbo/java-server/script/debug.sh
index 27c5d80..1038cd7 100644
--- a/examples/general/dubbo/java-server/script/debug.sh
+++ b/examples/general/dubbo/java-server/script/debug.sh
@@ -1,13 +1,19 @@
-#!/us1r/bin/env bash
-# ******************************************************
-# DESC :
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-09 21:52
-# FILE : to debug user info dubbo server
-# ******************************************************
+#!/usr/bin/env 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.
# jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/*:/Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/ com.alibaba.dubbo.container.Main
jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/* -sourcepath /Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/:/Users/alex/tmp/java-server/src/main/java com.alibaba.dubbo.container.Main
diff --git a/examples/general/dubbo/java-server/src/main/assembly/assembly.xml b/examples/general/dubbo/java-server/src/main/assembly/assembly.xml
index 2f01fea..98a2e10 100644
--- a/examples/general/dubbo/java-server/src/main/assembly/assembly.xml
+++ b/examples/general/dubbo/java-server/src/main/assembly/assembly.xml
@@ -1,18 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<assembly>
<id>assembly</id>
<formats>
diff --git a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Gender.java b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Gender.java
index 72c30ae..e606be7 100644
--- a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Gender.java
+++ b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Gender.java
@@ -1,3 +1,20 @@
+/*
+ * 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 com.ikurento.user;
public enum Gender {
diff --git a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Provider.java b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Provider.java
index 0031f55..dea1c34 100644
--- a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Provider.java
+++ b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Provider.java
@@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.ikurento.user;
import org.springframework.context.support.ClassPathXmlApplicationContext;
diff --git a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Response.java b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Response.java
index 3447e5c..83b423d 100644
--- a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Response.java
+++ b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/Response.java
@@ -1,7 +1,23 @@
+/*
+ * 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 com.ikurento.user;
import java.io.*;
-//import java.util.Objects;
public final class Response<T> implements Serializable {
private static final long serialVersionUID = 3727205004706510648L;
diff --git a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/User.java b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/User.java
index eafc0fe..a6e76cf 100644
--- a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/User.java
+++ b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/User.java
@@ -1,5 +1,21 @@
+/*
+ * 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 com.ikurento.user;
-// ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.Date;
import java.io.Serializable;
diff --git a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java
index 24567d2..6033587 100644
--- a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java
+++ b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java
@@ -1,5 +1,21 @@
+/*
+ * 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 com.ikurento.user;
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.List;
import java.util.Map;
diff --git a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
index 04729fb..dfa4649 100644
--- a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
+++ b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
@@ -1,10 +1,24 @@
+/*
+ * 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 com.ikurento.user;
-//ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-// import org.apache.log4j.Logger;
-// import org.apache.log4j.LoggerFactory;
import java.util.*;
diff --git a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
index 1efbf82..e2068f9 100644
--- a/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
+++ b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
@@ -1,6 +1,21 @@
-package com.ikurento.user;
+/*
+ * 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.
+ */
-// ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
+package com.ikurento.user;
import java.util.HashMap;
import java.util.List;
@@ -8,8 +23,6 @@ import java.util.ArrayList;
import java.util.Map;
import java.util.Iterator;
-// import org.apache.log4j.Logger;
-// import org.apache.log4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/examples/general/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml b/examples/general/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
index f8dd13a..4ebe64b 100644
--- a/examples/general/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
+++ b/examples/general/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
diff --git a/examples/general/jsonrpc/go-client/assembly/bin/load.sh b/examples/general/jsonrpc/go-client/assembly/bin/load.sh
index 07d5d15..ffa240b 100644
--- a/examples/general/jsonrpc/go-client/assembly/bin/load.sh
+++ b/examples/general/jsonrpc/go-client/assembly/bin/load.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
+
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/general/jsonrpc/go-client/assembly/common/app.properties b/examples/general/jsonrpc/go-client/assembly/common/app.properties
index 6bbd6db..e10868f 100644
--- a/examples/general/jsonrpc/go-client/assembly/common/app.properties
+++ b/examples/general/jsonrpc/go-client/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : dubbogo environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
export TARGET_EXEC_NAME="user_info_client"
# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
diff --git a/examples/general/jsonrpc/go-client/assembly/common/build.sh b/examples/general/jsonrpc/go-client/assembly/common/build.sh
index 06b212d..583edd7 100644
--- a/examples/general/jsonrpc/go-client/assembly/common/build.sh
+++ b/examples/general/jsonrpc/go-client/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
diff --git a/examples/general/jsonrpc/go-client/assembly/linux/dev.sh b/examples/general/jsonrpc/go-client/assembly/linux/dev.sh
index 3373f01..eada737 100644
--- a/examples/general/jsonrpc/go-client/assembly/linux/dev.sh
+++ b/examples/general/jsonrpc/go-client/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-client/assembly/linux/release.sh b/examples/general/jsonrpc/go-client/assembly/linux/release.sh
index 34867b8..10eb3d7 100644
--- a/examples/general/jsonrpc/go-client/assembly/linux/release.sh
+++ b/examples/general/jsonrpc/go-client/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-client/assembly/linux/test.sh b/examples/general/jsonrpc/go-client/assembly/linux/test.sh
index 1bbbefd..78b650c 100644
--- a/examples/general/jsonrpc/go-client/assembly/linux/test.sh
+++ b/examples/general/jsonrpc/go-client/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-client/assembly/mac/dev.sh b/examples/general/jsonrpc/go-client/assembly/mac/dev.sh
index b68ac83..c828476 100644
--- a/examples/general/jsonrpc/go-client/assembly/mac/dev.sh
+++ b/examples/general/jsonrpc/go-client/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-client/assembly/mac/release.sh b/examples/general/jsonrpc/go-client/assembly/mac/release.sh
index 688288b..91c2dfe 100644
--- a/examples/general/jsonrpc/go-client/assembly/mac/release.sh
+++ b/examples/general/jsonrpc/go-client/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-client/assembly/mac/test.sh b/examples/general/jsonrpc/go-client/assembly/mac/test.sh
index 56d6c11..a7853f5 100644
--- a/examples/general/jsonrpc/go-client/assembly/mac/test.sh
+++ b/examples/general/jsonrpc/go-client/assembly/mac/test.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-client/assembly/windows/dev.sh b/examples/general/jsonrpc/go-client/assembly/windows/dev.sh
index 91cf6f2..10a3866 100644
--- a/examples/general/jsonrpc/go-client/assembly/windows/dev.sh
+++ b/examples/general/jsonrpc/go-client/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-client/assembly/windows/release.sh b/examples/general/jsonrpc/go-client/assembly/windows/release.sh
index f317720..21af573 100644
--- a/examples/general/jsonrpc/go-client/assembly/windows/release.sh
+++ b/examples/general/jsonrpc/go-client/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-client/assembly/windows/test.sh b/examples/general/jsonrpc/go-client/assembly/windows/test.sh
index 7dd2bec..2104da8 100644
--- a/examples/general/jsonrpc/go-client/assembly/windows/test.sh
+++ b/examples/general/jsonrpc/go-client/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/bin/load.sh b/examples/general/jsonrpc/go-server/assembly/bin/load.sh
index 47fc5e3..90077c2 100644
--- a/examples/general/jsonrpc/go-server/assembly/bin/load.sh
+++ b/examples/general/jsonrpc/go-server/assembly/bin/load.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
+
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/general/jsonrpc/go-server/assembly/common/app.properties b/examples/general/jsonrpc/go-server/assembly/common/app.properties
index dffb755..1f0827e 100644
--- a/examples/general/jsonrpc/go-server/assembly/common/app.properties
+++ b/examples/general/jsonrpc/go-server/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : application environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
TARGET_EXEC_NAME="user_info_server"
# BUILD_PACKAGE="dubbogo-examples/user-info/server/app"
diff --git a/examples/general/jsonrpc/go-server/assembly/common/build.sh b/examples/general/jsonrpc/go-server/assembly/common/build.sh
index 15ac904..89a95ce 100644
--- a/examples/general/jsonrpc/go-server/assembly/common/build.sh
+++ b/examples/general/jsonrpc/go-server/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
diff --git a/examples/general/jsonrpc/go-server/assembly/linux/dev.sh b/examples/general/jsonrpc/go-server/assembly/linux/dev.sh
index 55886f0..d830ac9 100644
--- a/examples/general/jsonrpc/go-server/assembly/linux/dev.sh
+++ b/examples/general/jsonrpc/go-server/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/linux/release.sh b/examples/general/jsonrpc/go-server/assembly/linux/release.sh
index 9772ad9..9930380 100644
--- a/examples/general/jsonrpc/go-server/assembly/linux/release.sh
+++ b/examples/general/jsonrpc/go-server/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/linux/test.sh b/examples/general/jsonrpc/go-server/assembly/linux/test.sh
index 2fc4a98..87144bb 100644
--- a/examples/general/jsonrpc/go-server/assembly/linux/test.sh
+++ b/examples/general/jsonrpc/go-server/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/mac/dev.sh b/examples/general/jsonrpc/go-server/assembly/mac/dev.sh
index 5dfa784..3a7659b 100644
--- a/examples/general/jsonrpc/go-server/assembly/mac/dev.sh
+++ b/examples/general/jsonrpc/go-server/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/mac/release.sh b/examples/general/jsonrpc/go-server/assembly/mac/release.sh
index 1ec21c7..1c4bce4 100644
--- a/examples/general/jsonrpc/go-server/assembly/mac/release.sh
+++ b/examples/general/jsonrpc/go-server/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/mac/test.sh b/examples/general/jsonrpc/go-server/assembly/mac/test.sh
index d34914c..69206e3 100644
--- a/examples/general/jsonrpc/go-server/assembly/mac/test.sh
+++ b/examples/general/jsonrpc/go-server/assembly/mac/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/windows/dev.sh b/examples/general/jsonrpc/go-server/assembly/windows/dev.sh
index 97fbb6f..011fb41 100644
--- a/examples/general/jsonrpc/go-server/assembly/windows/dev.sh
+++ b/examples/general/jsonrpc/go-server/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:34
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/windows/release.sh b/examples/general/jsonrpc/go-server/assembly/windows/release.sh
index 782cb10..679a26a 100644
--- a/examples/general/jsonrpc/go-server/assembly/windows/release.sh
+++ b/examples/general/jsonrpc/go-server/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/go-server/assembly/windows/test.sh b/examples/general/jsonrpc/go-server/assembly/windows/test.sh
index 2037dde..4a36de0 100644
--- a/examples/general/jsonrpc/go-server/assembly/windows/test.sh
+++ b/examples/general/jsonrpc/go-server/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/general/jsonrpc/java-client/build.sh b/examples/general/jsonrpc/java-client/build.sh
index 1286b53..c869acf 100644
--- a/examples/general/jsonrpc/java-client/build.sh
+++ b/examples/general/jsonrpc/java-client/build.sh
@@ -1,8 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# EMAIL : alexstocks@foxmail.com
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
# rm src/main/resources/META-INF/spring/dubbo.consumer.xml
# cp src/main/resources/META-INF/spring/dubbo-protocol.consumer.xml src/main/resources/META-INF/spring/dubbo.consumer.xml
diff --git a/examples/general/jsonrpc/java-client/pom.xml b/examples/general/jsonrpc/java-client/pom.xml
index 79a8a7e..445b924 100644
--- a/examples/general/jsonrpc/java-client/pom.xml
+++ b/examples/general/jsonrpc/java-client/pom.xml
@@ -1,18 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
diff --git a/examples/general/jsonrpc/java-client/src/main/assembly/assembly.xml b/examples/general/jsonrpc/java-client/src/main/assembly/assembly.xml
index 25235d9..47757d1 100644
--- a/examples/general/jsonrpc/java-client/src/main/assembly/assembly.xml
+++ b/examples/general/jsonrpc/java-client/src/main/assembly/assembly.xml
@@ -1,18 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<assembly>
<id>assembly</id>
<formats>
diff --git a/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/Consumer.java b/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/Consumer.java
index 1a38dbf..cca9559 100644
--- a/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/Consumer.java
+++ b/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/Consumer.java
@@ -1,12 +1,19 @@
-// *****************************************************
-// DESC : dubbo consumer
-// AUTHOR : writtey by 包增辉(https://github.com/baozh)
-// VERSION : 1.0
-// LICENCE : Apache License 2.0
-// EMAIL : alexstocks@foxmail.com
-// MOD : 2016-10-19 17:03
-// FILE : Consumer.java
-// ******************************************************
+/*
+ * 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 com.ikurento.user;
diff --git a/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/Gender.java b/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/Gender.java
index 7bcfae3..e606be7 100644
--- a/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/Gender.java
+++ b/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/Gender.java
@@ -1,10 +1,22 @@
-package com.ikurento.user;
+/*
+ * 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.
+ */
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
+package com.ikurento.user;
-/**
- * Created by wuwen on 15/4/7.
- */
public enum Gender {
MAN,
WOMAN
diff --git a/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/User.java b/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/User.java
index 6966210..7f228b3 100644
--- a/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/User.java
+++ b/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/User.java
@@ -1,11 +1,24 @@
+/*
+ * 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 com.ikurento.user;
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.Date;
-/**
- * Created by wuwen on 15/4/7.
- */
public class User {
private String id;
diff --git a/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/UserProvider.java b/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/UserProvider.java
index 93e7aad..5518577 100644
--- a/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/UserProvider.java
+++ b/examples/general/jsonrpc/java-client/src/main/java/com/ikurento/user/UserProvider.java
@@ -1,6 +1,4 @@
/*
- * Copyright 1999-2011 Alibaba Group.
- *
* 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
@@ -13,8 +11,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.ikurento.user;
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.List;
diff --git a/examples/general/jsonrpc/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml b/examples/general/jsonrpc/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml
index da21e8a..b23b82a 100644
--- a/examples/general/jsonrpc/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml
+++ b/examples/general/jsonrpc/java-client/src/main/resources/META-INF/spring/dubbo.consumer.xml
@@ -1,18 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
diff --git a/examples/general/jsonrpc/java-client/src/main/resources/META-INF/spring/service.xml b/examples/general/jsonrpc/java-client/src/main/resources/META-INF/spring/service.xml
index db9fc3c..854d513 100644
--- a/examples/general/jsonrpc/java-client/src/main/resources/META-INF/spring/service.xml
+++ b/examples/general/jsonrpc/java-client/src/main/resources/META-INF/spring/service.xml
@@ -1,18 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
diff --git a/examples/general/jsonrpc/java-server/build.sh b/examples/general/jsonrpc/java-server/build.sh
index 0c197da..7b5755b 100644
--- a/examples/general/jsonrpc/java-server/build.sh
+++ b/examples/general/jsonrpc/java-server/build.sh
@@ -1,8 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# EMAIL : alexstocks@foxmail.com
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
# mvn dependency:sources
mvn clean package -Dmaven.test.skip
diff --git a/examples/general/jsonrpc/java-server/pom.xml b/examples/general/jsonrpc/java-server/pom.xml
index 9751578..9b811e9 100644
--- a/examples/general/jsonrpc/java-server/pom.xml
+++ b/examples/general/jsonrpc/java-server/pom.xml
@@ -1,4 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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 xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
diff --git a/examples/general/jsonrpc/java-server/script/debug.sh b/examples/general/jsonrpc/java-server/script/debug.sh
index 27c5d80..1038cd7 100644
--- a/examples/general/jsonrpc/java-server/script/debug.sh
+++ b/examples/general/jsonrpc/java-server/script/debug.sh
@@ -1,13 +1,19 @@
-#!/us1r/bin/env bash
-# ******************************************************
-# DESC :
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-09 21:52
-# FILE : to debug user info dubbo server
-# ******************************************************
+#!/usr/bin/env 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.
# jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/*:/Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/ com.alibaba.dubbo.container.Main
jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/* -sourcepath /Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/:/Users/alex/tmp/java-server/src/main/java com.alibaba.dubbo.container.Main
diff --git a/examples/general/jsonrpc/java-server/src/main/assembly/assembly.xml b/examples/general/jsonrpc/java-server/src/main/assembly/assembly.xml
index 2f01fea..98a2e10 100644
--- a/examples/general/jsonrpc/java-server/src/main/assembly/assembly.xml
+++ b/examples/general/jsonrpc/java-server/src/main/assembly/assembly.xml
@@ -1,18 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<assembly>
<id>assembly</id>
<formats>
diff --git a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/Gender.java b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/Gender.java
index 72c30ae..e606be7 100644
--- a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/Gender.java
+++ b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/Gender.java
@@ -1,3 +1,20 @@
+/*
+ * 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 com.ikurento.user;
public enum Gender {
diff --git a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/Response.java b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/Response.java
index 3447e5c..83b423d 100644
--- a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/Response.java
+++ b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/Response.java
@@ -1,7 +1,23 @@
+/*
+ * 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 com.ikurento.user;
import java.io.*;
-//import java.util.Objects;
public final class Response<T> implements Serializable {
private static final long serialVersionUID = 3727205004706510648L;
diff --git a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/User.java b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/User.java
index eafc0fe..a6e76cf 100644
--- a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/User.java
+++ b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/User.java
@@ -1,5 +1,21 @@
+/*
+ * 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 com.ikurento.user;
-// ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.Date;
import java.io.Serializable;
diff --git a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProvider.java b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProvider.java
index a74b222..2958a1a 100644
--- a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProvider.java
+++ b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProvider.java
@@ -1,5 +1,21 @@
+/*
+ * 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 com.ikurento.user;
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.List;
import java.util.Map;
diff --git a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
index 9e22b78..299feb7 100644
--- a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
+++ b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
@@ -1,10 +1,24 @@
+/*
+ * 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 com.ikurento.user;
-//ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-// import org.apache.log4j.Logger;
-// import org.apache.log4j.LoggerFactory;
import java.util.*;
diff --git a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
index 1ff8afa..ac6c229 100644
--- a/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
+++ b/examples/general/jsonrpc/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
@@ -1,6 +1,21 @@
-package com.ikurento.user;
+/*
+ * 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.
+ */
-// ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
+package com.ikurento.user;
import java.util.HashMap;
import java.util.List;
diff --git a/examples/general/jsonrpc/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml b/examples/general/jsonrpc/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
index 6eb03bc..f9ebc08 100644
--- a/examples/general/jsonrpc/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
+++ b/examples/general/jsonrpc/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
diff --git a/examples/generic/go-client/assembly/bin/load.sh b/examples/generic/go-client/assembly/bin/load.sh
index 07d5d15..176a202 100644
--- a/examples/generic/go-client/assembly/bin/load.sh
+++ b/examples/generic/go-client/assembly/bin/load.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/generic/go-client/assembly/common/app.properties b/examples/generic/go-client/assembly/common/app.properties
index 6bbd6db..97eee47 100644
--- a/examples/generic/go-client/assembly/common/app.properties
+++ b/examples/generic/go-client/assembly/common/app.properties
@@ -1,13 +1,20 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : dubbogo environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#!/usr/bin/env 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.
+
export TARGET_EXEC_NAME="user_info_client"
# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
diff --git a/examples/generic/go-client/assembly/common/build.sh b/examples/generic/go-client/assembly/common/build.sh
index e724182..0f0b22f 100644
--- a/examples/generic/go-client/assembly/common/build.sh
+++ b/examples/generic/go-client/assembly/common/build.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
+
rm -rf target/
diff --git a/examples/generic/go-client/assembly/linux/dev.sh b/examples/generic/go-client/assembly/linux/dev.sh
index 3373f01..4f659a7 100644
--- a/examples/generic/go-client/assembly/linux/dev.sh
+++ b/examples/generic/go-client/assembly/linux/dev.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/go-client/assembly/linux/release.sh b/examples/generic/go-client/assembly/linux/release.sh
index 34867b8..10eb3d7 100644
--- a/examples/generic/go-client/assembly/linux/release.sh
+++ b/examples/generic/go-client/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/go-client/assembly/linux/test.sh b/examples/generic/go-client/assembly/linux/test.sh
index 1bbbefd..78b650c 100644
--- a/examples/generic/go-client/assembly/linux/test.sh
+++ b/examples/generic/go-client/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/go-client/assembly/mac/dev.sh b/examples/generic/go-client/assembly/mac/dev.sh
index b68ac83..0d21ec4 100644
--- a/examples/generic/go-client/assembly/mac/dev.sh
+++ b/examples/generic/go-client/assembly/mac/dev.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/go-client/assembly/mac/release.sh b/examples/generic/go-client/assembly/mac/release.sh
index 688288b..91c2dfe 100644
--- a/examples/generic/go-client/assembly/mac/release.sh
+++ b/examples/generic/go-client/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/go-client/assembly/mac/test.sh b/examples/generic/go-client/assembly/mac/test.sh
index 56d6c11..2fac89d 100644
--- a/examples/generic/go-client/assembly/mac/test.sh
+++ b/examples/generic/go-client/assembly/mac/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/go-client/assembly/windows/dev.sh b/examples/generic/go-client/assembly/windows/dev.sh
index 91cf6f2..10a3866 100644
--- a/examples/generic/go-client/assembly/windows/dev.sh
+++ b/examples/generic/go-client/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/go-client/assembly/windows/release.sh b/examples/generic/go-client/assembly/windows/release.sh
index f317720..21af573 100644
--- a/examples/generic/go-client/assembly/windows/release.sh
+++ b/examples/generic/go-client/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/go-client/assembly/windows/test.sh b/examples/generic/go-client/assembly/windows/test.sh
index 7dd2bec..2104da8 100644
--- a/examples/generic/go-client/assembly/windows/test.sh
+++ b/examples/generic/go-client/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/generic/java-server/build.sh b/examples/generic/java-server/build.sh
index 0c197da..7b5755b 100644
--- a/examples/generic/java-server/build.sh
+++ b/examples/generic/java-server/build.sh
@@ -1,8 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# EMAIL : alexstocks@foxmail.com
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
# mvn dependency:sources
mvn clean package -Dmaven.test.skip
diff --git a/examples/generic/java-server/pom.xml b/examples/generic/java-server/pom.xml
index 9751578..9b811e9 100644
--- a/examples/generic/java-server/pom.xml
+++ b/examples/generic/java-server/pom.xml
@@ -1,4 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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 xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
diff --git a/examples/generic/java-server/script/debug.sh b/examples/generic/java-server/script/debug.sh
index 27c5d80..1038cd7 100644
--- a/examples/generic/java-server/script/debug.sh
+++ b/examples/generic/java-server/script/debug.sh
@@ -1,13 +1,19 @@
-#!/us1r/bin/env bash
-# ******************************************************
-# DESC :
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-09 21:52
-# FILE : to debug user info dubbo server
-# ******************************************************
+#!/usr/bin/env 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.
# jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/*:/Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/ com.alibaba.dubbo.container.Main
jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/* -sourcepath /Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/:/Users/alex/tmp/java-server/src/main/java com.alibaba.dubbo.container.Main
diff --git a/examples/generic/java-server/src/main/assembly/assembly.xml b/examples/generic/java-server/src/main/assembly/assembly.xml
index 2f01fea..98a2e10 100644
--- a/examples/generic/java-server/src/main/assembly/assembly.xml
+++ b/examples/generic/java-server/src/main/assembly/assembly.xml
@@ -1,18 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<assembly>
<id>assembly</id>
<formats>
diff --git a/examples/generic/java-server/src/main/java/com/ikurento/user/Gender.java b/examples/generic/java-server/src/main/java/com/ikurento/user/Gender.java
index 72c30ae..e606be7 100644
--- a/examples/generic/java-server/src/main/java/com/ikurento/user/Gender.java
+++ b/examples/generic/java-server/src/main/java/com/ikurento/user/Gender.java
@@ -1,3 +1,20 @@
+/*
+ * 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 com.ikurento.user;
public enum Gender {
diff --git a/examples/generic/java-server/src/main/java/com/ikurento/user/Response.java b/examples/generic/java-server/src/main/java/com/ikurento/user/Response.java
index 3447e5c..83b423d 100644
--- a/examples/generic/java-server/src/main/java/com/ikurento/user/Response.java
+++ b/examples/generic/java-server/src/main/java/com/ikurento/user/Response.java
@@ -1,7 +1,23 @@
+/*
+ * 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 com.ikurento.user;
import java.io.*;
-//import java.util.Objects;
public final class Response<T> implements Serializable {
private static final long serialVersionUID = 3727205004706510648L;
diff --git a/examples/generic/java-server/src/main/java/com/ikurento/user/User.java b/examples/generic/java-server/src/main/java/com/ikurento/user/User.java
index eafc0fe..a6e76cf 100644
--- a/examples/generic/java-server/src/main/java/com/ikurento/user/User.java
+++ b/examples/generic/java-server/src/main/java/com/ikurento/user/User.java
@@ -1,5 +1,21 @@
+/*
+ * 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 com.ikurento.user;
-// ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.Date;
import java.io.Serializable;
diff --git a/examples/generic/java-server/src/main/java/com/ikurento/user/UserProvider.java b/examples/generic/java-server/src/main/java/com/ikurento/user/UserProvider.java
index 24567d2..6033587 100644
--- a/examples/generic/java-server/src/main/java/com/ikurento/user/UserProvider.java
+++ b/examples/generic/java-server/src/main/java/com/ikurento/user/UserProvider.java
@@ -1,5 +1,21 @@
+/*
+ * 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 com.ikurento.user;
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.List;
import java.util.Map;
diff --git a/examples/generic/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java b/examples/generic/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
index d600545..05611fc 100644
--- a/examples/generic/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
+++ b/examples/generic/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java
@@ -1,5 +1,21 @@
+/*
+ * 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 com.ikurento.user;
-//ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/examples/generic/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java b/examples/generic/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
index 47a4e2d..1984d16 100644
--- a/examples/generic/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
+++ b/examples/generic/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
@@ -1,6 +1,21 @@
-package com.ikurento.user;
+/*
+ * 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.
+ */
-// ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
+package com.ikurento.user;
import java.util.HashMap;
import java.util.List;
diff --git a/examples/generic/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml b/examples/generic/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
index f8dd13a..4ebe64b 100644
--- a/examples/generic/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
+++ b/examples/generic/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
diff --git a/examples/helloworld/dubbo/go-client/assembly/bin/load.sh b/examples/helloworld/dubbo/go-client/assembly/bin/load.sh
index 07d5d15..176a202 100644
--- a/examples/helloworld/dubbo/go-client/assembly/bin/load.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/bin/load.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/helloworld/dubbo/go-client/assembly/common/app.properties b/examples/helloworld/dubbo/go-client/assembly/common/app.properties
index 6bbd6db..97eee47 100644
--- a/examples/helloworld/dubbo/go-client/assembly/common/app.properties
+++ b/examples/helloworld/dubbo/go-client/assembly/common/app.properties
@@ -1,13 +1,20 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : dubbogo environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#!/usr/bin/env 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.
+
export TARGET_EXEC_NAME="user_info_client"
# BUILD_PACKAGE="dubbogo-examples/user-info/client/app"
diff --git a/examples/helloworld/dubbo/go-client/assembly/common/build.sh b/examples/helloworld/dubbo/go-client/assembly/common/build.sh
index e724182..0f0b22f 100644
--- a/examples/helloworld/dubbo/go-client/assembly/common/build.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/common/build.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
+
rm -rf target/
diff --git a/examples/helloworld/dubbo/go-client/assembly/linux/dev.sh b/examples/helloworld/dubbo/go-client/assembly/linux/dev.sh
index 3373f01..eada737 100644
--- a/examples/helloworld/dubbo/go-client/assembly/linux/dev.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-client/assembly/linux/release.sh b/examples/helloworld/dubbo/go-client/assembly/linux/release.sh
index 34867b8..13b19f4 100644
--- a/examples/helloworld/dubbo/go-client/assembly/linux/release.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/linux/release.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-client/assembly/linux/test.sh b/examples/helloworld/dubbo/go-client/assembly/linux/test.sh
index 1bbbefd..c6c31b3 100644
--- a/examples/helloworld/dubbo/go-client/assembly/linux/test.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/linux/test.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-client/assembly/mac/dev.sh b/examples/helloworld/dubbo/go-client/assembly/mac/dev.sh
index b68ac83..c828476 100644
--- a/examples/helloworld/dubbo/go-client/assembly/mac/dev.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-client/assembly/mac/release.sh b/examples/helloworld/dubbo/go-client/assembly/mac/release.sh
index 688288b..91c2dfe 100644
--- a/examples/helloworld/dubbo/go-client/assembly/mac/release.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-client/assembly/mac/test.sh b/examples/helloworld/dubbo/go-client/assembly/mac/test.sh
index 56d6c11..a7853f5 100644
--- a/examples/helloworld/dubbo/go-client/assembly/mac/test.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/mac/test.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-client/assembly/windows/dev.sh b/examples/helloworld/dubbo/go-client/assembly/windows/dev.sh
index 91cf6f2..10a3866 100644
--- a/examples/helloworld/dubbo/go-client/assembly/windows/dev.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-18 13:24
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-client/assembly/windows/release.sh b/examples/helloworld/dubbo/go-client/assembly/windows/release.sh
index f317720..21af573 100644
--- a/examples/helloworld/dubbo/go-client/assembly/windows/release.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-client/assembly/windows/test.sh b/examples/helloworld/dubbo/go-client/assembly/windows/test.sh
index 7dd2bec..2104da8 100644
--- a/examples/helloworld/dubbo/go-client/assembly/windows/test.sh
+++ b/examples/helloworld/dubbo/go-client/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/bin/load.sh b/examples/helloworld/dubbo/go-server/assembly/bin/load.sh
index 47fc5e3..2e127ac 100644
--- a/examples/helloworld/dubbo/go-server/assembly/bin/load.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/bin/load.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : dubbogo app devops script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-05-13 02:01
-# FILE : load.sh
-# ******************************************************
+#
+# 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.
APP_NAME="APPLICATION_NAME"
APP_ARGS=""
diff --git a/examples/helloworld/dubbo/go-server/assembly/common/app.properties b/examples/helloworld/dubbo/go-server/assembly/common/app.properties
index dffb755..1f0827e 100644
--- a/examples/helloworld/dubbo/go-server/assembly/common/app.properties
+++ b/examples/helloworld/dubbo/go-server/assembly/common/app.properties
@@ -1,13 +1,19 @@
-# dubbogo application configure script
-# ******************************************************
-# DESC : application environment variable
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:29
-# FILE : app.properties
-# ******************************************************
+#
+# 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.
+
TARGET_EXEC_NAME="user_info_server"
# BUILD_PACKAGE="dubbogo-examples/user-info/server/app"
diff --git a/examples/helloworld/dubbo/go-server/assembly/common/build.sh b/examples/helloworld/dubbo/go-server/assembly/common/build.sh
index 15ac904..89a95ce 100644
--- a/examples/helloworld/dubbo/go-server/assembly/common/build.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/common/build.sh
@@ -1,13 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:28
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
rm -rf target/
diff --git a/examples/helloworld/dubbo/go-server/assembly/linux/dev.sh b/examples/helloworld/dubbo/go-server/assembly/linux/dev.sh
index 55886f0..d830ac9 100644
--- a/examples/helloworld/dubbo/go-server/assembly/linux/dev.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/linux/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/linux/release.sh b/examples/helloworld/dubbo/go-server/assembly/linux/release.sh
index 9772ad9..9930380 100644
--- a/examples/helloworld/dubbo/go-server/assembly/linux/release.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/linux/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/linux/test.sh b/examples/helloworld/dubbo/go-server/assembly/linux/test.sh
index 2fc4a98..87144bb 100644
--- a/examples/helloworld/dubbo/go-server/assembly/linux/test.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/linux/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/mac/dev.sh b/examples/helloworld/dubbo/go-server/assembly/mac/dev.sh
index 5dfa784..3a7659b 100644
--- a/examples/helloworld/dubbo/go-server/assembly/mac/dev.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/mac/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:32
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/mac/release.sh b/examples/helloworld/dubbo/go-server/assembly/mac/release.sh
index 1ec21c7..1c4bce4 100644
--- a/examples/helloworld/dubbo/go-server/assembly/mac/release.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/mac/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/mac/test.sh b/examples/helloworld/dubbo/go-server/assembly/mac/test.sh
index d34914c..69206e3 100644
--- a/examples/helloworld/dubbo/go-server/assembly/mac/test.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/mac/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/windows/dev.sh b/examples/helloworld/dubbo/go-server/assembly/windows/dev.sh
index 97fbb6f..011fb41 100644
--- a/examples/helloworld/dubbo/go-server/assembly/windows/dev.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/windows/dev.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for dev env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2018-06-24 17:34
-# FILE : dev.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/windows/release.sh b/examples/helloworld/dubbo/go-server/assembly/windows/release.sh
index 782cb10..679a26a 100644
--- a/examples/helloworld/dubbo/go-server/assembly/windows/release.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/windows/release.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for release env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:25
-# FILE : release.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/go-server/assembly/windows/test.sh b/examples/helloworld/dubbo/go-server/assembly/windows/test.sh
index 2037dde..4a36de0 100644
--- a/examples/helloworld/dubbo/go-server/assembly/windows/test.sh
+++ b/examples/helloworld/dubbo/go-server/assembly/windows/test.sh
@@ -1,13 +1,20 @@
#!/usr/bin/env bash
-# ******************************************************
-# DESC : build script for test env
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2016-07-12 16:34
-# FILE : test.sh
-# ******************************************************
+#
+# 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
diff --git a/examples/helloworld/dubbo/java-server/build.sh b/examples/helloworld/dubbo/java-server/build.sh
index 0c197da..7b5755b 100644
--- a/examples/helloworld/dubbo/java-server/build.sh
+++ b/examples/helloworld/dubbo/java-server/build.sh
@@ -1,8 +1,19 @@
#!/usr/bin/env bash
-# ******************************************************
-# EMAIL : alexstocks@foxmail.com
-# FILE : build.sh
-# ******************************************************
+#
+# 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.
# mvn dependency:sources
mvn clean package -Dmaven.test.skip
diff --git a/examples/helloworld/dubbo/java-server/pom.xml b/examples/helloworld/dubbo/java-server/pom.xml
index 9751578..8c13228 100644
--- a/examples/helloworld/dubbo/java-server/pom.xml
+++ b/examples/helloworld/dubbo/java-server/pom.xml
@@ -1,4 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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 xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
diff --git a/examples/helloworld/dubbo/java-server/script/debug.sh b/examples/helloworld/dubbo/java-server/script/debug.sh
index 27c5d80..851957a 100644
--- a/examples/helloworld/dubbo/java-server/script/debug.sh
+++ b/examples/helloworld/dubbo/java-server/script/debug.sh
@@ -1,13 +1,20 @@
-#!/us1r/bin/env bash
-# ******************************************************
-# DESC :
-# AUTHOR : Alex Stocks
-# VERSION : 1.0
-# LICENCE : Apache License 2.0
-# EMAIL : alexstocks@foxmail.com
-# MOD : 2017-10-09 21:52
-# FILE : to debug user info dubbo server
-# ******************************************************
+#!/usr/bin/env 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.
+
# jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/*:/Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/ com.alibaba.dubbo.container.Main
jdb -classpath /Users/alex/tmp/us/conf:/Users/alex/tmp/us/lib/* -sourcepath /Users/alex/test/java/dubbo/2.5.4/dubbo-remoting/dubbo-remoting-api/src/main/java/:/Users/alex/tmp/java-server/src/main/java com.alibaba.dubbo.container.Main
diff --git a/examples/helloworld/dubbo/java-server/src/main/assembly/assembly.xml b/examples/helloworld/dubbo/java-server/src/main/assembly/assembly.xml
index 2f01fea..98a2e10 100644
--- a/examples/helloworld/dubbo/java-server/src/main/assembly/assembly.xml
+++ b/examples/helloworld/dubbo/java-server/src/main/assembly/assembly.xml
@@ -1,18 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<assembly>
<id>assembly</id>
<formats>
diff --git a/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/User.java b/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/User.java
index 06f3f18..fd2cafb 100644
--- a/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/User.java
+++ b/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/User.java
@@ -1,5 +1,21 @@
+/*
+ * 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 com.ikurento.user;
-// ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
import java.util.Date;
import java.io.Serializable;
diff --git a/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java b/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java
index f3301cd..b1eeab8 100644
--- a/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java
+++ b/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/UserProvider.java
@@ -1,6 +1,21 @@
-package com.ikurento.user;
-// https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
+/*
+ * 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 com.ikurento.user;
public interface UserProvider {
diff --git a/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java b/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
index 4a394b8..0d66c43 100644
--- a/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
+++ b/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderImpl.java
@@ -1,6 +1,21 @@
-package com.ikurento.user;
+/*
+ * 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.
+ */
-// ref: https://github.com/JoeCao/dubbo_jsonrpc_example/tree/master/dubbo_server/src/main/java/com/ofpay/demo/api
+package com.ikurento.user;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
diff --git a/examples/helloworld/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml b/examples/helloworld/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
index fe23e1f..edd01dc 100644
--- a/examples/helloworld/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
+++ b/examples/helloworld/dubbo/java-server/src/main/resources/META-INF/spring/dubbo.provider.xml
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- - Copyright 1999-2011 Alibaba Group.
- -
- - 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.
+ 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.
-->
+
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
diff --git a/protocol/jsonrpc/http.go b/protocol/jsonrpc/http.go
index 46e2da0..b64a3a3 100644
--- a/protocol/jsonrpc/http.go
+++ b/protocol/jsonrpc/http.go
@@ -146,7 +146,6 @@ func (c *HTTPClient) Call(ctx context.Context, service common.URL, req *Request,
// !!The high level of complexity and the likelihood that the fasthttp client has not been extensively used
// in production means that you would need to expect a very large benefit to justify the adoption of fasthttp today.
-// from: http://big-elephants.com/2016-12/fasthttp-client/
func (c *HTTPClient) Do(addr, path string, httpHeader http.Header, body []byte) ([]byte, error) {
u := url.URL{Host: strings.TrimSuffix(addr, ":"), Path: path}
httpReq, err := http.NewRequest("POST", u.String(), bytes.NewBuffer(body))
diff --git a/registry/directory/directory.go b/registry/directory/directory.go
index 11687f8..6280918 100644
--- a/registry/directory/directory.go
+++ b/registry/directory/directory.go
@@ -80,7 +80,7 @@ func NewRegistryDirectory(url *common.URL, registry registry.Registry, opts ...O
}, nil
}
-//subscibe from registry
+//subscribe from registry
func (dir *registryDirectory) Subscribe(url common.URL) {
for {
if !dir.registry.IsAvailable() {
diff --git a/registry/zookeeper/registry.go b/registry/zookeeper/registry.go
index 6fa38a7..ff57eb6 100644
--- a/registry/zookeeper/registry.go
+++ b/registry/zookeeper/registry.go
@@ -233,7 +233,7 @@ func (r *zkRegistry) Register(conf common.URL) error {
r.cltLock.Lock()
// Note the difference between consumer and consumerZookeeperRegistry (consumer use conf.Path).
// Because the consumer wants to provide monitoring functions for the selector,
- // the provider allows multiple groups or constants of the same service to be registered.
+ // the provider allows multiple groups or versions of the same service to be registered.
_, ok = r.services[conf.Key()]
r.cltLock.Unlock()
if ok {
@@ -381,7 +381,11 @@ func (r *zkRegistry) registerTempZookeeperNode(root string, node string) error {
}
zkPath, err = r.client.RegisterTemp(root, node)
if err != nil {
- logger.Errorf("RegisterTempNode(root{%s}, node{%s}) = error{%v}", root, node, perrors.WithStack(err))
+ if err == zk.ErrNodeExists {
+ logger.Warnf("RegisterTempNode(root{%s}, node{%s}) = error{%v}", root, node, perrors.WithStack(err))
+ } else {
+ logger.Errorf("RegisterTempNode(root{%s}, node{%s}) = error{%v}", root, node, perrors.WithStack(err))
+ }
return perrors.WithMessagef(err, "RegisterTempNode(root{%s}, node{%s})", root, node)
}
logger.Debugf("create a zookeeper node:%s", zkPath)
diff --git a/remoting/zookeeper/client.go b/remoting/zookeeper/client.go
index 008848e..a7fc568 100644
--- a/remoting/zookeeper/client.go
+++ b/remoting/zookeeper/client.go
@@ -65,7 +65,7 @@ func StateToString(state zk.State) string {
case zk.StateConnectedReadOnly:
return "zookeeper connect readonly"
case zk.StateSaslAuthenticated:
- return "zookeeper sasl authenticaed"
+ return "zookeeper sasl authenticated"
case zk.StateExpired:
return "zookeeper connection expired"
case zk.StateConnected:
@@ -118,7 +118,7 @@ func ValidateZookeeperClient(container zkClientFacade, opts ...Option) error {
defer lock.Unlock()
if container.ZkClient() == nil {
- //in dubbp ,every registry only connect one node ,so this is []string{r.Address}
+ //in dubbo ,every registry only connect one node ,so this is []string{r.Address}
timeout, err := time.ParseDuration(url.GetParam(constant.REGISTRY_TIMEOUT_KEY, constant.DEFAULT_REG_TIMEOUT))
if err != nil {
logger.Errorf("timeout config %v is invalid ,err is %v",
@@ -128,7 +128,7 @@ func ValidateZookeeperClient(container zkClientFacade, opts ...Option) error {
zkAddresses := strings.Split(url.Location, ",")
newClient, err := newZookeeperClient(opions.zkName, zkAddresses, timeout)
if err != nil {
- logger.Warnf("newZookeeperClient(name{%s}, zk addresss{%v}, timeout{%d}) = error{%v}",
+ logger.Warnf("newZookeeperClient(name{%s}, zk address{%v}, timeout{%d}) = error{%v}",
opions.zkName, url.Location, timeout.String(), err)
return perrors.WithMessagef(err, "newZookeeperClient(address:%+v)", url.Location)
}
diff --git a/remoting/zookeeper/facade_test.go b/remoting/zookeeper/facade_test.go
index 46edd49..58e0d69 100644
--- a/remoting/zookeeper/facade_test.go
+++ b/remoting/zookeeper/facade_test.go
@@ -75,7 +75,7 @@ func (r *mockFacade) IsAvailable() bool {
return true
}
-func Test_Fascade(t *testing.T) {
+func Test_Facade(t *testing.T) {
ts, z, event, err := NewMockZookeeperClient("test", 15*time.Second)
assert.NoError(t, err)
defer ts.Stop()
diff --git a/remoting/zookeeper/listener.go b/remoting/zookeeper/listener.go
index 3df87ed..fda265c 100644
--- a/remoting/zookeeper/listener.go
+++ b/remoting/zookeeper/listener.go
@@ -245,67 +245,6 @@ func (l *ZkEventListener) listenDirEvent(zkPath string, listener remoting.DataLi
}
}
-//
-//func (l *ZkEventListener) listenFileEvent(zkPath string, listener remoting.DataListener) {
-// l.wg.EventTypeAdd(1)
-// defer l.wg.Done()
-//
-// var (
-// failTimes int
-// event chan struct{}
-// zkEvent zk.Event
-// )
-// event = make(chan struct{}, 4)
-// defer close(event)
-// for {
-// // get current children for a zkPath
-// content,_, eventCh, err := l.client.Conn.GetW(zkPath)
-// if err != nil {
-// failTimes++
-// if MaxFailTimes <= failTimes {
-// failTimes = MaxFailTimes
-// }
-// logger.Errorf("listenFileEvent(path{%s}) = error{%v}", zkPath, err)
-// // clear the event channel
-// CLEAR:
-// for {
-// select {
-// case <-event:
-// default:
-// break CLEAR
-// }
-// }
-// l.client.RegisterEvent(zkPath, &event)
-// select {
-// case <-time.After(timeSecondDuration(failTimes * ConnDelay)):
-// l.client.UnregisterEvent(zkPath, &event)
-// continue
-// case <-l.client.Done():
-// l.client.UnregisterEvent(zkPath, &event)
-// logger.Warnf("client.done(), listen(path{%s}) goroutine exit now...", zkPath)
-// return
-// case <-event:
-// logger.Infof("get zk.EventNodeDataChange notify event")
-// l.client.UnregisterEvent(zkPath, &event)
-// l.handleZkNodeEvent(zkPath, nil, listener)
-// continue
-// }
-// }
-// failTimes = 0
-//
-// select {
-// case zkEvent = <-eventCh:
-// logger.Warnf("get a zookeeper zkEvent{type:%s, server:%s, path:%s, state:%d-%s, err:%s}",
-// zkEvent.Type.String(), zkEvent.Server, zkEvent.Path, zkEvent.State, StateToString(zkEvent.State), zkEvent.Err)
-//
-// l.handleZkNodeEvent(zkEvent.Path, children, listener)
-// case <-l.client.Done():
-// logger.Warnf("client.done(), listen(path{%s}) goroutine exit now...", zkPath)
-// return
-// }
-// }
-//}
-
func timeSecondDuration(sec int) time.Duration {
return time.Duration(sec) * time.Second
}