Skip to content

Commit

Permalink
Revert "Support build with Bazel (apache#4865)"
Browse files Browse the repository at this point in the history
This reverts commit ec8a93d.
  • Loading branch information
RongtongJin committed Aug 23, 2022
1 parent 2930994 commit bbbb96e
Show file tree
Hide file tree
Showing 105 changed files with 243 additions and 1,880 deletions.
73 changes: 0 additions & 73 deletions .bazelrc

This file was deleted.

1 change: 0 additions & 1 deletion .bazelversion

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/bazel.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Run Tests By Maven
name: Build
on:
pull_request:
types: [opened, reopened, synchronize]
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ devenv
.DS_Store
localbin
nohup.out
bazel-out
bazel-bin
bazel-rocketmq
bazel-testlogs
1 change: 0 additions & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ header:
- 'distribution/LICENSE-BIN'
- 'distribution/NOTICE-BIN'
- 'distribution/conf/rmq-proxy.json'
- '.bazelversion'


comment: on-failure
46 changes: 0 additions & 46 deletions BUILD.bazel

This file was deleted.

128 changes: 0 additions & 128 deletions WORKSPACE

This file was deleted.

73 changes: 0 additions & 73 deletions acl/BUILD.bazel

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ public RemoteAddressStrategy getRemoteAddressStrategy(String remoteAddr) {
String[] strArray = StringUtils.split(remoteAddr, ":");
String last = strArray[strArray.length - 1];
if (!last.startsWith("{")) {
throw new AclException(String.format("MultipleRemoteAddressStrategy netaddress examine scope Exception netaddress: %s", remoteAddr));
throw new AclException(String.format("MultipleRemoteAddressStrategy netaddress examine scope Exception netaddress", remoteAddr));
}
return new MultipleRemoteAddressStrategy(AclUtils.getAddresses(remoteAddr, last));
} else {
String[] strArray = StringUtils.split(remoteAddr, ".");
// However a right IP String provided by user,it always can be divided into 4 parts by '.'.
if (strArray.length < 4) {
throw new AclException(String.format("MultipleRemoteAddressStrategy has got a/some wrong format IP(s): %s ", remoteAddr));
throw new AclException(String.format("MultipleRemoteAddressStrategy has got a/some wrong format IP(s) ", remoteAddr));
}
String lastStr = strArray[strArray.length - 1];
if (!lastStr.startsWith("{")) {
throw new AclException(String.format("MultipleRemoteAddressStrategy netaddress examine scope Exception netaddress: %s", remoteAddr));
throw new AclException(String.format("MultipleRemoteAddressStrategy netaddress examine scope Exception netaddress", remoteAddr));
}
return new MultipleRemoteAddressStrategy(AclUtils.getAddresses(remoteAddr, lastStr));
}
Expand Down
Loading

0 comments on commit bbbb96e

Please sign in to comment.