From de017029b9bd06c5f680a54a9cec8ef7fa99624d Mon Sep 17 00:00:00 2001 From: AlexStocks <alexstocks@foxmail.com> Date: Wed, 28 Aug 2019 02:10:39 +0800 Subject: [PATCH] Mod: delete AS in remark --- LICENSE | 1 - cluster/loadbalance/least_active_test.go | 17 ++++++ common/url.go | 17 ++++-- config/config_loader.go | 11 ++-- .../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 +++++--- .../dubbo/go-client/assembly/bin/load.sh | 25 +++++--- .../go-client/assembly/common/app.properties | 26 +++++--- .../dubbo/go-client/assembly/common/build.sh | 24 +++++--- .../dubbo/go-client/assembly/linux/dev.sh | 25 +++++--- .../dubbo/go-client/assembly/linux/release.sh | 25 +++++--- .../dubbo/go-client/assembly/linux/test.sh | 25 +++++--- .../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 +++++--- .../go-client/assembly/windows/release.sh | 25 +++++--- .../dubbo/go-client/assembly/windows/test.sh | 25 +++++--- .../dubbo/go-server/assembly/bin/load.sh | 25 +++++--- .../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 +++++--- .../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 +++++--- .../go-server/assembly/windows/release.sh | 25 +++++--- .../dubbo/go-server/assembly/windows/test.sh | 25 +++++--- examples/general/dubbo/java-server/build.sh | 19 ++++-- examples/general/dubbo/java-server/pom.xml | 15 +++++ .../general/dubbo/java-server/script/debug.sh | 26 +++++--- .../user/UserProviderAnotherImpl.java | 1 - .../com/ikurento/user/UserProviderImpl.java | 20 +++++- .../jsonrpc/go-client/assembly/bin/load.sh | 25 +++++--- .../go-client/assembly/common/app.properties | 26 +++++--- .../go-client/assembly/common/build.sh | 24 +++++--- .../jsonrpc/go-client/assembly/linux/dev.sh | 25 +++++--- .../go-client/assembly/linux/release.sh | 25 +++++--- .../jsonrpc/go-client/assembly/linux/test.sh | 25 +++++--- .../jsonrpc/go-client/assembly/mac/dev.sh | 25 +++++--- .../jsonrpc/go-client/assembly/mac/release.sh | 25 +++++--- .../jsonrpc/go-client/assembly/mac/test.sh | 24 +++++--- .../jsonrpc/go-client/assembly/windows/dev.sh | 25 +++++--- .../go-client/assembly/windows/release.sh | 25 +++++--- .../go-client/assembly/windows/test.sh | 25 +++++--- .../jsonrpc/go-server/assembly/bin/load.sh | 25 +++++--- .../go-server/assembly/common/app.properties | 26 +++++--- .../go-server/assembly/common/build.sh | 24 +++++--- .../jsonrpc/go-server/assembly/linux/dev.sh | 25 +++++--- .../go-server/assembly/linux/release.sh | 25 +++++--- .../jsonrpc/go-server/assembly/linux/test.sh | 25 +++++--- .../jsonrpc/go-server/assembly/mac/dev.sh | 25 +++++--- .../jsonrpc/go-server/assembly/mac/release.sh | 25 +++++--- .../jsonrpc/go-server/assembly/mac/test.sh | 25 +++++--- .../jsonrpc/go-server/assembly/windows/dev.sh | 25 +++++--- .../go-server/assembly/windows/release.sh | 25 +++++--- .../go-server/assembly/windows/test.sh | 25 +++++--- .../jsonrpc/java-server/script/debug.sh | 26 +++++--- examples/generic/go-client/app/user.go | 17 ++++++ .../generic/go-client/assembly/bin/load.sh | 25 +++++--- .../go-client/assembly/common/app.properties | 26 +++++--- .../go-client/assembly/common/build.sh | 24 +++++--- .../generic/go-client/assembly/linux/dev.sh | 25 +++++--- .../go-client/assembly/linux/release.sh | 25 +++++--- .../generic/go-client/assembly/linux/test.sh | 25 +++++--- .../generic/go-client/assembly/mac/dev.sh | 25 +++++--- .../generic/go-client/assembly/mac/release.sh | 25 +++++--- .../generic/go-client/assembly/mac/test.sh | 24 +++++--- .../generic/go-client/assembly/windows/dev.sh | 25 +++++--- .../go-client/assembly/windows/release.sh | 25 +++++--- .../go-client/assembly/windows/test.sh | 25 +++++--- examples/generic/java-server/pom.xml | 14 +++++ examples/generic/java-server/script/debug.sh | 27 +++++--- .../dubbo/go-client/assembly/bin/load.sh | 25 +++++--- .../go-client/assembly/common/app.properties | 26 +++++--- .../dubbo/go-client/assembly/common/build.sh | 24 +++++--- .../dubbo/go-client/assembly/linux/dev.sh | 25 +++++--- .../dubbo/go-client/assembly/linux/release.sh | 25 +++++--- .../dubbo/go-client/assembly/linux/test.sh | 25 +++++--- .../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 +++++--- .../go-client/assembly/windows/release.sh | 25 +++++--- .../dubbo/go-client/assembly/windows/test.sh | 25 +++++--- .../dubbo/go-server/assembly/bin/load.sh | 25 +++++--- .../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 +++++--- .../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 +++++--- .../go-server/assembly/windows/release.sh | 25 +++++--- .../dubbo/go-server/assembly/windows/test.sh | 25 +++++--- .../helloworld/dubbo/java-server/build.sh | 19 ++++-- examples/helloworld/dubbo/java-server/pom.xml | 15 +++++ .../dubbo/java-server/script/debug.sh | 27 +++++--- .../src/main/java/com/ikurento/user/User.java | 18 +++++- .../java/com/ikurento/user/UserProvider.java | 19 +++++- .../com/ikurento/user/UserProviderImpl.java | 19 +++++- protocol/jsonrpc/http.go | 1 - registry/directory/directory.go | 3 +- registry/nacos/registry.go | 2 +- registry/nacos/registry_test.go | 8 +-- remoting/zookeeper/client.go | 6 +- remoting/zookeeper/facade_test.go | 2 +- remoting/zookeeper/listener.go | 61 ------------------- 158 files changed, 2365 insertions(+), 1342 deletions(-) diff --git a/LICENSE b/LICENSE index d80bbdaa1..e9ba4dde7 100644 --- a/LICENSE +++ b/LICENSE @@ -176,7 +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. diff --git a/cluster/loadbalance/least_active_test.go b/cluster/loadbalance/least_active_test.go index 7663ea3ce..6bc698567 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 c594df235..fb31129ed 100644 --- a/common/url.go +++ b/common/url.go @@ -27,6 +27,7 @@ import ( "net/url" "strconv" "strings" + "sync" ) import ( @@ -64,10 +65,12 @@ func (t RoleType) Role() string { } type baseUrl struct { - Protocol string - Location string // ip+port - Ip string - Port string + Protocol string + Location string // ip+port + Ip string + Port string + //url.Values is not safe map, add to avoid concurrent map read and map write error + paramsLock sync.RWMutex Params url.Values PrimitiveURL string ctx context.Context @@ -283,14 +286,18 @@ 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 { var r string - if r = c.Params.Get(s); r == "" { + c.paramsLock.RLock() + if r = c.Params.Get(s); len(r) == 0 { r = d } + c.paramsLock.RUnlock() return r } func (c URL) GetParamAndDecoded(key string) (string, error) { diff --git a/config/config_loader.go b/config/config_loader.go index b033aced5..c5127c8c4 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 @@ -99,7 +98,7 @@ func Load() { break } if refconfig.invoker == nil { - logger.Warnf("The interface %s invoker not exsist , may you should check your interface config.", refconfig.InterfaceName) + logger.Warnf("The interface %s invoker not exist , may you should check your interface config.", refconfig.InterfaceName) } } } @@ -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 07d5d15ea..ffa240b29 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 6bbd6db85..e10868f4d 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 e72418297..c9a9e87c7 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 3373f01b9..eada737c8 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 34867b8b3..10eb3d73f 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 1bbbefd1e..78b650c0d 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 b68ac83b6..c82847699 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 688288b3b..91c2dfee7 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 56d6c11ec..a7853f5e2 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 91cf6f23b..10a3866c0 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 f317720bd..21af573fa 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 7dd2bec52..2104da8b5 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 47fc5e38d..90077c247 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 dffb755b0..1f0827eb5 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 15ac904f7..89a95ce67 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 55886f09f..d830ac98c 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 9772ad961..99303800b 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 2fc4a9886..87144bb97 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 5dfa78490..3a7659b2d 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 1ec21c7b5..1c4bce4bf 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 d34914c7d..69206e32f 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 97fbb6f69..011fb4114 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 782cb10c7..679a26a7d 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 2037ddecf..4a36de0f3 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 07d5d15ea..ffa240b29 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 6bbd6db85..e10868f4d 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 06b212db6..c9a9e87c7 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 3373f01b9..eada737c8 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 34867b8b3..10eb3d73f 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 1bbbefd1e..78b650c0d 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 b68ac83b6..c82847699 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 688288b3b..91c2dfee7 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 56d6c11ec..a7853f5e2 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 91cf6f23b..10a3866c0 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 f317720bd..21af573fa 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 7dd2bec52..2104da8b5 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 47fc5e38d..90077c247 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 dffb755b0..1f0827eb5 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 15ac904f7..89a95ce67 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 55886f09f..d830ac98c 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 9772ad961..99303800b 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 2fc4a9886..87144bb97 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 5dfa78490..3a7659b2d 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 1ec21c7b5..1c4bce4bf 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 d34914c7d..69206e32f 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 97fbb6f69..011fb4114 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 782cb10c7..679a26a7d 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 2037ddecf..4a36de0f3 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 07d5d15ea..ffa240b29 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 6bbd6db85..e10868f4d 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 e72418297..c9a9e87c7 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 3373f01b9..eada737c8 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 34867b8b3..10eb3d73f 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 1bbbefd1e..78b650c0d 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 b68ac83b6..c82847699 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 688288b3b..91c2dfee7 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 56d6c11ec..a7853f5e2 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 91cf6f23b..10a3866c0 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 f317720bd..21af573fa 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 7dd2bec52..2104da8b5 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/assembly/bin/load.sh b/examples/general/dubbo/go-server/assembly/bin/load.sh index 47fc5e38d..90077c247 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 dffb755b0..1f0827eb5 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 15ac904f7..89a95ce67 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 55886f09f..d830ac98c 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 9772ad961..99303800b 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 2fc4a9886..87144bb97 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 5dfa78490..3a7659b2d 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 1ec21c7b5..1c4bce4bf 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 d34914c7d..69206e32f 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 97fbb6f69..011fb4114 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 782cb10c7..679a26a7d 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 2037ddecf..4a36de0f3 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-server/build.sh b/examples/general/dubbo/java-server/build.sh index 0c197da63..7b5755be1 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 975157865..8c1322860 100644 --- a/examples/general/dubbo/java-server/pom.xml +++ b/examples/general/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/general/dubbo/java-server/script/debug.sh b/examples/general/dubbo/java-server/script/debug.sh index 27c5d800d..1038cd7ff 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/java/com/ikurento/user/UserProviderAnotherImpl.java b/examples/general/dubbo/java-server/src/main/java/com/ikurento/user/UserProviderAnotherImpl.java index 04729fb7a..c367a2a58 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,5 +1,4 @@ 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/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 1efbf8237..6efa582d5 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,22 @@ +/* + * 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.HashMap; import java.util.List; @@ -8,8 +24,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/jsonrpc/go-client/assembly/bin/load.sh b/examples/general/jsonrpc/go-client/assembly/bin/load.sh index 07d5d15ea..ffa240b29 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 6bbd6db85..e10868f4d 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 06b212db6..583edd7d9 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 3373f01b9..eada737c8 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 34867b8b3..10eb3d73f 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 1bbbefd1e..78b650c0d 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 b68ac83b6..c82847699 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 688288b3b..91c2dfee7 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 56d6c11ec..a7853f5e2 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 91cf6f23b..10a3866c0 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 f317720bd..21af573fa 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 7dd2bec52..2104da8b5 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 47fc5e38d..90077c247 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 dffb755b0..1f0827eb5 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 15ac904f7..89a95ce67 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 55886f09f..d830ac98c 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 9772ad961..99303800b 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 2fc4a9886..87144bb97 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 5dfa78490..3a7659b2d 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 1ec21c7b5..1c4bce4bf 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 d34914c7d..69206e32f 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 97fbb6f69..011fb4114 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 782cb10c7..679a26a7d 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 2037ddecf..4a36de0f3 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-server/script/debug.sh b/examples/general/jsonrpc/java-server/script/debug.sh index 27c5d800d..1038cd7ff 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/generic/go-client/app/user.go b/examples/generic/go-client/app/user.go index 9b226e244..963a67fdf 100644 --- a/examples/generic/go-client/app/user.go +++ b/examples/generic/go-client/app/user.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/generic/go-client/assembly/bin/load.sh b/examples/generic/go-client/assembly/bin/load.sh index 07d5d15ea..ffa240b29 100644 --- a/examples/generic/go-client/assembly/bin/load.sh +++ b/examples/generic/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/generic/go-client/assembly/common/app.properties b/examples/generic/go-client/assembly/common/app.properties index 6bbd6db85..e10868f4d 100644 --- a/examples/generic/go-client/assembly/common/app.properties +++ b/examples/generic/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/generic/go-client/assembly/common/build.sh b/examples/generic/go-client/assembly/common/build.sh index e72418297..c9a9e87c7 100644 --- a/examples/generic/go-client/assembly/common/build.sh +++ b/examples/generic/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/generic/go-client/assembly/linux/dev.sh b/examples/generic/go-client/assembly/linux/dev.sh index 3373f01b9..eada737c8 100644 --- a/examples/generic/go-client/assembly/linux/dev.sh +++ b/examples/generic/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/generic/go-client/assembly/linux/release.sh b/examples/generic/go-client/assembly/linux/release.sh index 34867b8b3..10eb3d73f 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 1bbbefd1e..78b650c0d 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 b68ac83b6..c82847699 100644 --- a/examples/generic/go-client/assembly/mac/dev.sh +++ b/examples/generic/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/generic/go-client/assembly/mac/release.sh b/examples/generic/go-client/assembly/mac/release.sh index 688288b3b..91c2dfee7 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 56d6c11ec..a7853f5e2 100644 --- a/examples/generic/go-client/assembly/mac/test.sh +++ b/examples/generic/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/generic/go-client/assembly/windows/dev.sh b/examples/generic/go-client/assembly/windows/dev.sh index 91cf6f23b..10a3866c0 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 f317720bd..21af573fa 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 7dd2bec52..2104da8b5 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/pom.xml b/examples/generic/java-server/pom.xml index 975157865..9b811e9f7 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 27c5d800d..851957ade 100644 --- a/examples/generic/java-server/script/debug.sh +++ b/examples/generic/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/go-client/assembly/bin/load.sh b/examples/helloworld/dubbo/go-client/assembly/bin/load.sh index 07d5d15ea..ffa240b29 100644 --- a/examples/helloworld/dubbo/go-client/assembly/bin/load.sh +++ b/examples/helloworld/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/helloworld/dubbo/go-client/assembly/common/app.properties b/examples/helloworld/dubbo/go-client/assembly/common/app.properties index 6bbd6db85..e10868f4d 100644 --- a/examples/helloworld/dubbo/go-client/assembly/common/app.properties +++ b/examples/helloworld/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/helloworld/dubbo/go-client/assembly/common/build.sh b/examples/helloworld/dubbo/go-client/assembly/common/build.sh index e72418297..c9a9e87c7 100644 --- a/examples/helloworld/dubbo/go-client/assembly/common/build.sh +++ b/examples/helloworld/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/helloworld/dubbo/go-client/assembly/linux/dev.sh b/examples/helloworld/dubbo/go-client/assembly/linux/dev.sh index 3373f01b9..eada737c8 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 34867b8b3..10eb3d73f 100644 --- a/examples/helloworld/dubbo/go-client/assembly/linux/release.sh +++ b/examples/helloworld/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/helloworld/dubbo/go-client/assembly/linux/test.sh b/examples/helloworld/dubbo/go-client/assembly/linux/test.sh index 1bbbefd1e..78b650c0d 100644 --- a/examples/helloworld/dubbo/go-client/assembly/linux/test.sh +++ b/examples/helloworld/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/helloworld/dubbo/go-client/assembly/mac/dev.sh b/examples/helloworld/dubbo/go-client/assembly/mac/dev.sh index b68ac83b6..c82847699 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 688288b3b..91c2dfee7 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 56d6c11ec..a7853f5e2 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 91cf6f23b..10a3866c0 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 f317720bd..21af573fa 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 7dd2bec52..2104da8b5 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 47fc5e38d..90077c247 100644 --- a/examples/helloworld/dubbo/go-server/assembly/bin/load.sh +++ b/examples/helloworld/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/helloworld/dubbo/go-server/assembly/common/app.properties b/examples/helloworld/dubbo/go-server/assembly/common/app.properties index dffb755b0..1f0827eb5 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 15ac904f7..89a95ce67 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 55886f09f..d830ac98c 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 9772ad961..99303800b 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 2fc4a9886..87144bb97 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 5dfa78490..3a7659b2d 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 1ec21c7b5..1c4bce4bf 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 d34914c7d..69206e32f 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 97fbb6f69..011fb4114 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 782cb10c7..679a26a7d 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 2037ddecf..4a36de0f3 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 0c197da63..7b5755be1 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 975157865..8c1322860 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 27c5d800d..851957ade 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/java/com/ikurento/user/User.java b/examples/helloworld/dubbo/java-server/src/main/java/com/ikurento/user/User.java index 06f3f18f0..fd2cafb31 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 f3301cd64..b1eeab82f 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 4a394b80a..0d66c4300 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/protocol/jsonrpc/http.go b/protocol/jsonrpc/http.go index 46e2da06b..b64a3a344 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 11687f82e..accc99a45 100644 --- a/registry/directory/directory.go +++ b/registry/directory/directory.go @@ -55,7 +55,6 @@ type registryDirectory struct { serviceType string registry registry.Registry cacheInvokersMap *sync.Map //use sync.map - //cacheInvokersMap map[string]protocol.Invoker Options } @@ -80,7 +79,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/nacos/registry.go b/registry/nacos/registry.go index f10e230bc..bf86ead7a 100644 --- a/registry/nacos/registry.go +++ b/registry/nacos/registry.go @@ -120,7 +120,7 @@ func appendParam(target *bytes.Buffer, url common.URL, key string) { func createRegisterParam(url common.URL, serviceName string) vo.RegisterInstanceParam { category := getCategory(url) params := make(map[string]string, len(url.Params)+3) - for k, _ := range url.Params { + for k := range url.Params { params[k] = url.Params.Get(k) } params[constant.NACOS_CATEGORY_KEY] = category diff --git a/registry/nacos/registry_test.go b/registry/nacos/registry_test.go index 97dea0d2b..9ce9dcfe4 100644 --- a/registry/nacos/registry_test.go +++ b/registry/nacos/registry_test.go @@ -18,7 +18,7 @@ import ( "github.com/apache/dubbo-go/common/constant" ) -func Test_Register(t *testing.T) { +func TestNacosRegistry_Register(t *testing.T) { regurl, _ := common.NewURL(context.TODO(), "registry://console.nacos.io:80", common.WithParamsValue(constant.ROLE_KEY, strconv.Itoa(common.PROVIDER))) urlMap := url.Values{} urlMap.Set(constant.GROUP_KEY, "guangzhou-idc") @@ -91,7 +91,7 @@ func TestNacosRegistry_Subscribe_del(t *testing.T) { urlMap.Set(constant.GROUP_KEY, "guangzhou-idc") urlMap.Set(constant.ROLE_KEY, strconv.Itoa(common.PROVIDER)) urlMap.Set(constant.INTERFACE_KEY, "com.ikurento.user.UserProvider") - urlMap.Set(constant.VERSION_KEY, "1.0.0") + urlMap.Set(constant.VERSION_KEY, "2.0.0") urlMap.Set(constant.CLUSTER_KEY, "mock") urlMap.Set(constant.NACOS_PATH_KEY, "") url1, _ := common.NewURL(context.TODO(), "dubbo://127.0.0.1:20000/com.ikurento.user.UserProvider", common.WithParams(urlMap), common.WithMethods([]string{"GetUser", "AddUser"})) @@ -139,8 +139,8 @@ func TestNacosRegistry_Subscribe_del(t *testing.T) { assert.Regexp(t, ".*ServiceEvent{Action{add}.*", serviceEvent2.String()) nacosReg := reg.(*nacosRegistry) - //deregister instance to mock instance offline - nacosReg.namingClient.DeregisterInstance(vo.DeregisterInstanceParam{Ip: "127.0.0.2", Port: 20000, ServiceName: "providers:com.ikurento.user.UserProvider:1.0.0:guangzhou-idc"}) + //deregister instance to mock instance offline + nacosReg.namingClient.DeregisterInstance(vo.DeregisterInstanceParam{Ip: "127.0.0.2", Port: 20000, ServiceName: "providers:com.ikurento.user.UserProvider:2.0.0:guangzhou-idc"}) serviceEvent3, _ := listener.Next() assert.NoError(t, err) diff --git a/remoting/zookeeper/client.go b/remoting/zookeeper/client.go index 008848ea6..a7fc568f5 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 46edd49bf..58e0d69dc 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 d9efd4fed..b8da16dcb 100644 --- a/remoting/zookeeper/listener.go +++ b/remoting/zookeeper/listener.go @@ -259,67 +259,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 } -- GitLab