This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-weaver.git
The following commit(s) were added to refs/heads/master by this push: new f4411fb Normalise EOL f4411fb is described below commit f4411fb3093b7891dd381025ccc02711c233288a Author: Sebb <s...@apache.org> AuthorDate: Sat Jan 18 22:20:11 2025 +0000 Normalise EOL --- .gitattributes | 2 + .../services/org.apache.commons.weaver.spi.Weaver | 38 ++++---- .../src/it/sample/src/test/resources/java.policy | 108 ++++++++++----------- 3 files changed, 75 insertions(+), 73 deletions(-) diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..db173de --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +* text=auto +*.patch -text diff --git a/modules/normalizer/src/main/resources/META-INF/services/org.apache.commons.weaver.spi.Weaver b/modules/normalizer/src/main/resources/META-INF/services/org.apache.commons.weaver.spi.Weaver index 12a05ca..e81993b 100644 --- a/modules/normalizer/src/main/resources/META-INF/services/org.apache.commons.weaver.spi.Weaver +++ b/modules/normalizer/src/main/resources/META-INF/services/org.apache.commons.weaver.spi.Weaver @@ -1,19 +1,19 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -# this class gets picked up by the WeaveProcessor -org.apache.commons.weaver.normalizer.NormalizerWeaver +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# this class gets picked up by the WeaveProcessor +org.apache.commons.weaver.normalizer.NormalizerWeaver diff --git a/modules/privilizer/weaver/src/it/sample/src/test/resources/java.policy b/modules/privilizer/weaver/src/it/sample/src/test/resources/java.policy index 542fb97..f18eaa1 100644 --- a/modules/privilizer/weaver/src/it/sample/src/test/resources/java.policy +++ b/modules/privilizer/weaver/src/it/sample/src/test/resources/java.policy @@ -1,54 +1,54 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. -// -// Allows unit tests to run with a Java Security Manager -// - -grant -{ - // let everyone read target dir - permission java.io.FilePermission "${preserve.project.build.directory}${/}-", "read"; -}; - -// we don't care about the permissions of the testing infrastructure, -// including maven; -grant codeBase "file://${local-repo}/org/apache/maven/-" -{ - permission java.security.AllPermission; -}; - -// junit; -grant codeBase "file://${local-repo}/junit/-" -{ - permission java.security.AllPermission; -}; - -// surefire booter; -grant codeBase "file://${project.build.directory}/surefire/-" -{ - permission java.security.AllPermission; -}; - -// classes under test -grant codeBase "file://${project.build.outputDirectory}/-" -{ - permission java.util.PropertyPermission "foo", "read,write"; - permission java.util.PropertyPermission "bar", "read,write"; - permission java.util.PropertyPermission "baz", "read,write"; - permission java.lang.RuntimePermission "accessDeclaredMembers"; - permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; -}; +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// +// Allows unit tests to run with a Java Security Manager +// + +grant +{ + // let everyone read target dir + permission java.io.FilePermission "${preserve.project.build.directory}${/}-", "read"; +}; + +// we don't care about the permissions of the testing infrastructure, +// including maven; +grant codeBase "file://${local-repo}/org/apache/maven/-" +{ + permission java.security.AllPermission; +}; + +// junit; +grant codeBase "file://${local-repo}/junit/-" +{ + permission java.security.AllPermission; +}; + +// surefire booter; +grant codeBase "file://${project.build.directory}/surefire/-" +{ + permission java.security.AllPermission; +}; + +// classes under test +grant codeBase "file://${project.build.outputDirectory}/-" +{ + permission java.util.PropertyPermission "foo", "read,write"; + permission java.util.PropertyPermission "bar", "read,write"; + permission java.util.PropertyPermission "baz", "read,write"; + permission java.lang.RuntimePermission "accessDeclaredMembers"; + permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; +};