From 27bb5632f537a570d604ca883e47e95242457900 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 12 Nov 2016 17:55:37 -0800 Subject: [PATCH 1/8] GUACAMOLE-119: Add Apache RAT validation to build. --- doc/guacamole-example/pom.xml | 19 +++++++++++++ .../modules/guacamole-auth-jdbc-base/pom.xml | 26 ++++++++++++++++++ .../modules/guacamole-auth-jdbc-dist/pom.xml | 19 +++++++++++++ .../modules/guacamole-auth-jdbc-mysql/pom.xml | 25 +++++++++++++++++ .../guacamole-auth-jdbc-postgresql/pom.xml | 25 +++++++++++++++++ extensions/guacamole-auth-jdbc/pom.xml | 25 +++++++++++++++++ extensions/guacamole-auth-ldap/pom.xml | 25 +++++++++++++++++ extensions/guacamole-auth-noauth/pom.xml | 25 +++++++++++++++++ guacamole-common-js/pom.xml | 25 +++++++++++++++++ guacamole-common/pom.xml | 19 +++++++++++++ guacamole-ext/pom.xml | 25 +++++++++++++++++ guacamole/pom.xml | 27 +++++++++++++++++++ pom.xml | 27 +++++++++++++++++++ 13 files changed, 312 insertions(+) diff --git a/doc/guacamole-example/pom.xml b/doc/guacamole-example/pom.xml index cdfb894c3..875a104dd 100644 --- a/doc/guacamole-example/pom.xml +++ b/doc/guacamole-example/pom.xml @@ -48,6 +48,25 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + + validate + validate + + check + + + + + + diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/pom.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/pom.xml index 81083d93a..54a37acf4 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/pom.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/pom.xml @@ -38,6 +38,32 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + **/*.json + src/main/resources/html/*.html + + + + + + + validate + validate + + check + + + + + + diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/pom.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/pom.xml index d63252e5b..3dbf46d8c 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/pom.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/pom.xml @@ -44,6 +44,25 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + + validate + validate + + check + + + + + + diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/pom.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/pom.xml index 0fa90df65..5de40aae5 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/pom.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/pom.xml @@ -58,6 +58,31 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + **/*.json + + + + + + + validate + validate + + check + + + + + + diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/pom.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/pom.xml index af474d40b..1409cd3a7 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/pom.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/pom.xml @@ -58,6 +58,31 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + **/*.json + + + + + + + validate + validate + + check + + + + + + diff --git a/extensions/guacamole-auth-jdbc/pom.xml b/extensions/guacamole-auth-jdbc/pom.xml index 6c46a4882..1fb5f9b70 100644 --- a/extensions/guacamole-auth-jdbc/pom.xml +++ b/extensions/guacamole-auth-jdbc/pom.xml @@ -15,6 +15,31 @@ UTF-8 + + + + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + + validate + validate + + check + + + + + + + + + diff --git a/extensions/guacamole-auth-ldap/pom.xml b/extensions/guacamole-auth-ldap/pom.xml index a8e9958e9..85bb1e0f9 100644 --- a/extensions/guacamole-auth-ldap/pom.xml +++ b/extensions/guacamole-auth-ldap/pom.xml @@ -74,6 +74,31 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + **/*.json + + + + + + + validate + validate + + check + + + + + + diff --git a/extensions/guacamole-auth-noauth/pom.xml b/extensions/guacamole-auth-noauth/pom.xml index 63aca3ff4..66ea06b00 100644 --- a/extensions/guacamole-auth-noauth/pom.xml +++ b/extensions/guacamole-auth-noauth/pom.xml @@ -74,6 +74,31 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + **/*.json + + + + + + + validate + validate + + check + + + + + + diff --git a/guacamole-common-js/pom.xml b/guacamole-common-js/pom.xml index 095b70f1a..fad41d900 100644 --- a/guacamole-common-js/pom.xml +++ b/guacamole-common-js/pom.xml @@ -106,6 +106,31 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + **/*.json + + + + + + + validate + validate + + check + + + + + + diff --git a/guacamole-common/pom.xml b/guacamole-common/pom.xml index 15b253734..670976a10 100644 --- a/guacamole-common/pom.xml +++ b/guacamole-common/pom.xml @@ -99,6 +99,25 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + + validate + validate + + check + + + + + + diff --git a/guacamole-ext/pom.xml b/guacamole-ext/pom.xml index e4d0664dc..98605f5fa 100644 --- a/guacamole-ext/pom.xml +++ b/guacamole-ext/pom.xml @@ -99,6 +99,31 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + **/*.json + + + + + + + validate + validate + + check + + + + + + diff --git a/guacamole/pom.xml b/guacamole/pom.xml index 29c0f3e2b..7d33a2e18 100644 --- a/guacamole/pom.xml +++ b/guacamole/pom.xml @@ -184,6 +184,33 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + src/main/webapp/app/*/templates/*.html + src/main/webapp/lib/**/*.js + **/*.json + + + + + + + validate + validate + + check + + + + + + diff --git a/pom.xml b/pom.xml index ccde2f08d..4e27a7e23 100644 --- a/pom.xml +++ b/pom.xml @@ -65,6 +65,33 @@ + + + org.apache.rat + apache-rat-plugin + 0.12 + + + + .dockerignore + CONTRIBUTING + **/README.md + + + + + + + validate + validate + + check + + + + + + From 322d2ba1447c58159763b618a8a8b8b444509db5 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 12 Nov 2016 17:02:42 -0800 Subject: [PATCH 2/8] GUACAMOLE-119: Add Apache license boilerplate to pom.xml. --- doc/guacamole-example/pom.xml | 25 +++++++++++++++++-- .../modules/guacamole-auth-jdbc-base/pom.xml | 25 +++++++++++++++++-- .../modules/guacamole-auth-jdbc-dist/pom.xml | 25 +++++++++++++++++-- .../modules/guacamole-auth-jdbc-mysql/pom.xml | 25 +++++++++++++++++-- .../guacamole-auth-jdbc-postgresql/pom.xml | 25 +++++++++++++++++-- extensions/guacamole-auth-jdbc/pom.xml | 19 ++++++++++++++ extensions/guacamole-auth-ldap/pom.xml | 25 +++++++++++++++++-- extensions/guacamole-auth-noauth/pom.xml | 25 +++++++++++++++++-- guacamole-common-js/pom.xml | 25 +++++++++++++++++-- guacamole-common/pom.xml | 25 +++++++++++++++++-- guacamole-ext/pom.xml | 25 +++++++++++++++++-- guacamole/pom.xml | 25 +++++++++++++++++-- pom.xml | 25 +++++++++++++++++-- 13 files changed, 295 insertions(+), 24 deletions(-) diff --git a/doc/guacamole-example/pom.xml b/doc/guacamole-example/pom.xml index 875a104dd..b18e66fb4 100644 --- a/doc/guacamole-example/pom.xml +++ b/doc/guacamole-example/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/pom.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/pom.xml index 54a37acf4..aa2c45f3b 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/pom.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/pom.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/pom.xml index 3dbf46d8c..1a8b3d8b6 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/pom.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/pom.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/pom.xml index 5de40aae5..00c2577ee 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/pom.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/pom.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/pom.xml index 1409cd3a7..69e201474 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/pom.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/extensions/guacamole-auth-jdbc/pom.xml b/extensions/guacamole-auth-jdbc/pom.xml index 1fb5f9b70..d81f1313e 100644 --- a/extensions/guacamole-auth-jdbc/pom.xml +++ b/extensions/guacamole-auth-jdbc/pom.xml @@ -1,3 +1,22 @@ + + + + + 4.0.0 org.apache.guacamole diff --git a/extensions/guacamole-auth-noauth/pom.xml b/extensions/guacamole-auth-noauth/pom.xml index 66ea06b00..50f41aa24 100644 --- a/extensions/guacamole-auth-noauth/pom.xml +++ b/extensions/guacamole-auth-noauth/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/guacamole-common-js/pom.xml b/guacamole-common-js/pom.xml index fad41d900..aeca967f4 100644 --- a/guacamole-common-js/pom.xml +++ b/guacamole-common-js/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/guacamole-common/pom.xml b/guacamole-common/pom.xml index 670976a10..4cc68107a 100644 --- a/guacamole-common/pom.xml +++ b/guacamole-common/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/guacamole-ext/pom.xml b/guacamole-ext/pom.xml index 98605f5fa..b689a557b 100644 --- a/guacamole-ext/pom.xml +++ b/guacamole-ext/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/guacamole/pom.xml b/guacamole/pom.xml index 7d33a2e18..1d46e0f9c 100644 --- a/guacamole/pom.xml +++ b/guacamole/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole diff --git a/pom.xml b/pom.xml index 4e27a7e23..42c6fa144 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,26 @@ - + + + 4.0.0 org.apache.guacamole From 4241e8c13f8c9701641a991bdedcda66403b5c7d Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 12 Nov 2016 17:56:35 -0800 Subject: [PATCH 3/8] GUACAMOLE-119: Add Apache license boilerplate to project assembly XMLs. --- .../project-assembly.xml | 19 +++++++++++++++++++ .../src/main/assembly/dist.xml | 19 +++++++++++++++++++ .../src/main/assembly/dist.xml | 19 +++++++++++++++++++ guacamole-common-js/static.xml | 19 +++++++++++++++++++ project-assembly.xml | 19 +++++++++++++++++++ 5 files changed, 95 insertions(+) diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/project-assembly.xml b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/project-assembly.xml index f69df7f59..cf578a3c7 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/project-assembly.xml +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-dist/project-assembly.xml @@ -1,3 +1,22 @@ + + + + + guacamole-common-js guacamole-common-js diff --git a/project-assembly.xml b/project-assembly.xml index 7745bb935..d7fbebb67 100644 --- a/project-assembly.xml +++ b/project-assembly.xml @@ -1,3 +1,22 @@ + + Date: Sat, 12 Nov 2016 17:56:54 -0800 Subject: [PATCH 4/8] GUACAMOLE-119: Add Apache license boilerplate to example project. Remove META-INF. --- doc/guacamole-example/.gitignore | 1 + .../src/main/webapp/META-INF/context.xml | 2 -- .../src/main/webapp/index.html | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) delete mode 100644 doc/guacamole-example/src/main/webapp/META-INF/context.xml diff --git a/doc/guacamole-example/.gitignore b/doc/guacamole-example/.gitignore index 42f4a1a64..c352b3795 100644 --- a/doc/guacamole-example/.gitignore +++ b/doc/guacamole-example/.gitignore @@ -1,2 +1,3 @@ +src/main/webapp/META-INF/ target/ *~ diff --git a/doc/guacamole-example/src/main/webapp/META-INF/context.xml b/doc/guacamole-example/src/main/webapp/META-INF/context.xml deleted file mode 100644 index 5bee3dc30..000000000 --- a/doc/guacamole-example/src/main/webapp/META-INF/context.xml +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/doc/guacamole-example/src/main/webapp/index.html b/doc/guacamole-example/src/main/webapp/index.html index 6b318133e..5a513a6bd 100644 --- a/doc/guacamole-example/src/main/webapp/index.html +++ b/doc/guacamole-example/src/main/webapp/index.html @@ -1,5 +1,22 @@ + From d19c078280a31853c6c39334f573ebd8e03b67aa Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 12 Nov 2016 17:57:21 -0800 Subject: [PATCH 5/8] GUACAMOLE-119: Add Apache license boilerplate to example config files. --- .../doc/examples/exampleConfigGroup.ldif | 18 ++++++++++++++++++ .../doc/example/noauth-config.xml | 19 +++++++++++++++++++ guacamole/doc/example/user-mapping.xml | 19 +++++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/extensions/guacamole-auth-ldap/doc/examples/exampleConfigGroup.ldif b/extensions/guacamole-auth-ldap/doc/examples/exampleConfigGroup.ldif index cfc1d666e..f84940e01 100644 --- a/extensions/guacamole-auth-ldap/doc/examples/exampleConfigGroup.ldif +++ b/extensions/guacamole-auth-ldap/doc/examples/exampleConfigGroup.ldif @@ -1,3 +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. +# dn: cn=Example Config,dc=guac-dev,dc=org objectClass: guacConfigGroup diff --git a/extensions/guacamole-auth-noauth/doc/example/noauth-config.xml b/extensions/guacamole-auth-noauth/doc/example/noauth-config.xml index be02d89ae..0063f7085 100644 --- a/extensions/guacamole-auth-noauth/doc/example/noauth-config.xml +++ b/extensions/guacamole-auth-noauth/doc/example/noauth-config.xml @@ -1,3 +1,22 @@ + + diff --git a/guacamole/doc/example/user-mapping.xml b/guacamole/doc/example/user-mapping.xml index 1234de515..69ae6a1a1 100644 --- a/guacamole/doc/example/user-mapping.xml +++ b/guacamole/doc/example/user-mapping.xml @@ -1,3 +1,22 @@ + + From b483d8afefb2a8921a7a41f70754ad107ae60a80 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 12 Nov 2016 17:57:36 -0800 Subject: [PATCH 6/8] GUACAMOLE-119: Add Apache license boilerplate to guacConfigGroup LDAP schema. --- .../schema/guacConfigGroup.ldif | 19 +++++++++++++++++++ .../schema/guacConfigGroup.schema | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/extensions/guacamole-auth-ldap/schema/guacConfigGroup.ldif b/extensions/guacamole-auth-ldap/schema/guacConfigGroup.ldif index 4cac36cd2..6e3f60b25 100644 --- a/extensions/guacamole-auth-ldap/schema/guacConfigGroup.ldif +++ b/extensions/guacamole-auth-ldap/schema/guacConfigGroup.ldif @@ -1,3 +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. +# + dn: cn=guacConfigGroup,cn=schema,cn=config objectClass: olcSchemaConfig cn: guacConfigGroup diff --git a/extensions/guacamole-auth-ldap/schema/guacConfigGroup.schema b/extensions/guacamole-auth-ldap/schema/guacConfigGroup.schema index 33542f9ca..eff1766ca 100644 --- a/extensions/guacamole-auth-ldap/schema/guacConfigGroup.schema +++ b/extensions/guacamole-auth-ldap/schema/guacConfigGroup.schema @@ -1,3 +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. +# attributetype ( 1.3.6.1.4.1.38971.1.1.1 NAME 'guacConfigProtocol' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) From d78a2d9dad98517ccd11e7e9602545233d5586ea Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 12 Nov 2016 18:05:31 -0800 Subject: [PATCH 7/8] GUACAMOLE-119: Move NetBeans-specific .gitignore entries to guacamole project. --- .gitignore | 2 -- guacamole/.gitignore | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b82b2caa7..bcc52fede 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ *~ target/ -nb-configuration.xml -guacamole/customs.json diff --git a/guacamole/.gitignore b/guacamole/.gitignore index 1b2666e16..104d9234b 100644 --- a/guacamole/.gitignore +++ b/guacamole/.gitignore @@ -1,4 +1,6 @@ src/main/webapp/META-INF/ src/main/webapp/generated/ +nb-configuration.xml +customs.json target/ *~ From 94fcd068a468f8e92b60d10e3e936862141545d9 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 12 Nov 2016 18:41:00 -0800 Subject: [PATCH 8/8] GUACAMOLE-119: Include guacamole-example in the build. --- pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pom.xml b/pom.xml index 42c6fa144..99aed8b08 100644 --- a/pom.xml +++ b/pom.xml @@ -53,6 +53,9 @@ extensions/guacamole-auth-ldap extensions/guacamole-auth-noauth + + doc/guacamole-example +