From 4a3dbdf681b094f4b8842bb3e607fc6f1b8e2fbd Mon Sep 17 00:00:00 2001 From: Koen Aers Date: Wed, 16 Apr 2025 16:47:18 +0200 Subject: [PATCH] HBX-2979: Review the licensing headers and files - Handle the 'test/maven' subproject Signed-off-by: Koen Aers --- test/maven/pom.xml | 14 +++++--------- .../maven/src/it/generateHbm/invoker.properties | 17 +++++++++++++++++ test/maven/src/it/generateHbm/pom.xml | 15 +++++++++++++++ .../src/main/resources/hibernate.properties | 17 +++++++++++++++++ .../src/main/resources/hibernate.reveng.xml | 15 +++++++++++++++ .../src/main/resources/templates/pojo/Pojo.ftl | 15 +++++++++++++++ .../resources/templates/pojo/PojoFields.ftl | 15 +++++++++++++++ test/maven/src/it/generateHbm/verify.groovy | 17 +++++++++++++++++ test/maven/src/it/hbm2dao/invoker.properties | 17 +++++++++++++++++ test/maven/src/it/hbm2dao/pom.xml | 15 +++++++++++++++ .../src/main/resources/hibernate.properties | 17 +++++++++++++++++ .../src/main/resources/hibernate.reveng.xml | 15 +++++++++++++++ .../main/resources/templates/dao/daohome.ftl | 15 +++++++++++++++ test/maven/src/it/hbm2dao/verify.groovy | 17 +++++++++++++++++ test/maven/src/it/hbm2ddl/invoker.properties | 17 +++++++++++++++++ test/maven/src/it/hbm2ddl/pom.xml | 15 +++++++++++++++ .../src/main/resources/hibernate.properties | 17 +++++++++++++++++ .../src/main/resources/hibernate.reveng.xml | 15 +++++++++++++++ test/maven/src/it/hbm2ddl/verify.groovy | 17 +++++++++++++++++ test/maven/src/it/hbm2java/invoker.properties | 17 +++++++++++++++++ test/maven/src/it/hbm2java/pom.xml | 15 +++++++++++++++ .../src/main/resources/hibernate.properties | 17 +++++++++++++++++ .../src/main/resources/hibernate.reveng.xml | 15 +++++++++++++++ .../src/main/resources/templates/pojo/Pojo.ftl | 15 +++++++++++++++ .../resources/templates/pojo/PojoFields.ftl | 15 +++++++++++++++ test/maven/src/it/hbm2java/verify.groovy | 17 +++++++++++++++++ .../src/it/noPropertiesFile/invoker.properties | 17 +++++++++++++++++ test/maven/src/it/noPropertiesFile/pom.xml | 15 +++++++++++++++ .../maven/src/it/noPropertiesFile/verify.groovy | 17 +++++++++++++++++ test/maven/src/it/settings.xml | 15 +++++++++++++++ .../src/it/transformHbm/invoker.properties | 17 +++++++++++++++++ test/maven/src/it/transformHbm/pom.xml | 15 +++++++++++++++ .../transformHbm/src/main/resources/Foo.hbm.xml | 17 ++++++++++++++++- test/maven/src/it/transformHbm/verify.groovy | 17 +++++++++++++++++ 34 files changed, 533 insertions(+), 10 deletions(-) diff --git a/test/maven/pom.xml b/test/maven/pom.xml index 129915df7d..96b044b788 100644 --- a/test/maven/pom.xml +++ b/test/maven/pom.xml @@ -1,16 +1,12 @@ diff --git a/test/maven/src/it/generateHbm/src/main/resources/hibernate.properties b/test/maven/src/it/generateHbm/src/main/resources/hibernate.properties index 71496b3adc..11ceb22106 100644 --- a/test/maven/src/it/generateHbm/src/main/resources/hibernate.properties +++ b/test/maven/src/it/generateHbm/src/main/resources/hibernate.properties @@ -1,3 +1,20 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ hibernate.dialect=org.hibernate.dialect.H2Dialect hibernate.connection.driver_class=org.h2.Driver hibernate.connection.url=jdbc:h2:./test;DB_CLOSE_ON_EXIT=FALSE diff --git a/test/maven/src/it/generateHbm/src/main/resources/hibernate.reveng.xml b/test/maven/src/it/generateHbm/src/main/resources/hibernate.reveng.xml index 7ac52fd2cf..6b01f11911 100644 --- a/test/maven/src/it/generateHbm/src/main/resources/hibernate.reveng.xml +++ b/test/maven/src/it/generateHbm/src/main/resources/hibernate.reveng.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/generateHbm/src/main/resources/templates/pojo/Pojo.ftl b/test/maven/src/it/generateHbm/src/main/resources/templates/pojo/Pojo.ftl index 84ff76a5b2..84525f02b3 100644 --- a/test/maven/src/it/generateHbm/src/main/resources/templates/pojo/Pojo.ftl +++ b/test/maven/src/it/generateHbm/src/main/resources/templates/pojo/Pojo.ftl @@ -1,3 +1,18 @@ +<#-- + ~ Copyright 2018 - 2025 Red Hat, Inc. + ~ + ~ 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. + --> ${pojo.getPackageDeclaration()} // Generated ${date} by Hibernate Tools ${version} diff --git a/test/maven/src/it/generateHbm/src/main/resources/templates/pojo/PojoFields.ftl b/test/maven/src/it/generateHbm/src/main/resources/templates/pojo/PojoFields.ftl index 18cf396cc6..aee63ef908 100644 --- a/test/maven/src/it/generateHbm/src/main/resources/templates/pojo/PojoFields.ftl +++ b/test/maven/src/it/generateHbm/src/main/resources/templates/pojo/PojoFields.ftl @@ -1,3 +1,18 @@ +<#-- + ~ Copyright 2018 - 2025 Red Hat, Inc. + ~ + ~ 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. + --> <#-- // Fields --> <#list pojo.getAllPropertiesIterator() as field><#if pojo.getMetaAttribAsBool(field, "gen-property", true)><#if pojo.hasMetaAttribute(field, "field-description")> /** ${pojo.getFieldJavaDoc(field, 0)} diff --git a/test/maven/src/it/generateHbm/verify.groovy b/test/maven/src/it/generateHbm/verify.groovy index 586fe51dc5..2812248e59 100644 --- a/test/maven/src/it/generateHbm/verify.groovy +++ b/test/maven/src/it/generateHbm/verify.groovy @@ -1,3 +1,20 @@ +/* + * Hibernate Tools, Tooling for your Hibernate Projects + * + * Copyright 2018-2025 Red Hat, Inc. + * + * 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. + */ import java.io.*; File file = new File(basedir, "target/generated-sources/Person.hbm.xml"); diff --git a/test/maven/src/it/hbm2dao/invoker.properties b/test/maven/src/it/hbm2dao/invoker.properties index 4537ab14c4..f26202029c 100644 --- a/test/maven/src/it/hbm2dao/invoker.properties +++ b/test/maven/src/it/hbm2dao/invoker.properties @@ -1,2 +1,19 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ invoker.java.version = 1.8+ invoker.goals = generate-sources \ No newline at end of file diff --git a/test/maven/src/it/hbm2dao/pom.xml b/test/maven/src/it/hbm2dao/pom.xml index 5985f153f9..34eff6a401 100644 --- a/test/maven/src/it/hbm2dao/pom.xml +++ b/test/maven/src/it/hbm2dao/pom.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/hbm2dao/src/main/resources/hibernate.properties b/test/maven/src/it/hbm2dao/src/main/resources/hibernate.properties index 71496b3adc..11ceb22106 100644 --- a/test/maven/src/it/hbm2dao/src/main/resources/hibernate.properties +++ b/test/maven/src/it/hbm2dao/src/main/resources/hibernate.properties @@ -1,3 +1,20 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ hibernate.dialect=org.hibernate.dialect.H2Dialect hibernate.connection.driver_class=org.h2.Driver hibernate.connection.url=jdbc:h2:./test;DB_CLOSE_ON_EXIT=FALSE diff --git a/test/maven/src/it/hbm2dao/src/main/resources/hibernate.reveng.xml b/test/maven/src/it/hbm2dao/src/main/resources/hibernate.reveng.xml index 7ac52fd2cf..6b01f11911 100644 --- a/test/maven/src/it/hbm2dao/src/main/resources/hibernate.reveng.xml +++ b/test/maven/src/it/hbm2dao/src/main/resources/hibernate.reveng.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/hbm2dao/src/main/resources/templates/dao/daohome.ftl b/test/maven/src/it/hbm2dao/src/main/resources/templates/dao/daohome.ftl index a4923b416c..386e494443 100644 --- a/test/maven/src/it/hbm2dao/src/main/resources/templates/dao/daohome.ftl +++ b/test/maven/src/it/hbm2dao/src/main/resources/templates/dao/daohome.ftl @@ -1,3 +1,18 @@ +<#-- + ~ Copyright 2018 - 2025 Red Hat, Inc. + ~ + ~ 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. + --> ${pojo.getPackageDeclaration()} // Generated ${date} by Hibernate Tools ${version} diff --git a/test/maven/src/it/hbm2dao/verify.groovy b/test/maven/src/it/hbm2dao/verify.groovy index c1c99b0976..49a7a8b4a7 100644 --- a/test/maven/src/it/hbm2dao/verify.groovy +++ b/test/maven/src/it/hbm2dao/verify.groovy @@ -1,3 +1,20 @@ +/* + * Hibernate Tools, Tooling for your Hibernate Projects + * + * Copyright 2018-2025 Red Hat, Inc. + * + * 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. + */ import java.io.*; File dao = new File(basedir, "target/generated-sources/PersonHome.java"); diff --git a/test/maven/src/it/hbm2ddl/invoker.properties b/test/maven/src/it/hbm2ddl/invoker.properties index 13598db400..7bfd9fb4ed 100644 --- a/test/maven/src/it/hbm2ddl/invoker.properties +++ b/test/maven/src/it/hbm2ddl/invoker.properties @@ -1,2 +1,19 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ invoker.java.version = 1.8+ invoker.goals = generate-resources \ No newline at end of file diff --git a/test/maven/src/it/hbm2ddl/pom.xml b/test/maven/src/it/hbm2ddl/pom.xml index 25d841aae8..9956497b6c 100644 --- a/test/maven/src/it/hbm2ddl/pom.xml +++ b/test/maven/src/it/hbm2ddl/pom.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/hbm2ddl/src/main/resources/hibernate.properties b/test/maven/src/it/hbm2ddl/src/main/resources/hibernate.properties index 71496b3adc..11ceb22106 100644 --- a/test/maven/src/it/hbm2ddl/src/main/resources/hibernate.properties +++ b/test/maven/src/it/hbm2ddl/src/main/resources/hibernate.properties @@ -1,3 +1,20 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ hibernate.dialect=org.hibernate.dialect.H2Dialect hibernate.connection.driver_class=org.h2.Driver hibernate.connection.url=jdbc:h2:./test;DB_CLOSE_ON_EXIT=FALSE diff --git a/test/maven/src/it/hbm2ddl/src/main/resources/hibernate.reveng.xml b/test/maven/src/it/hbm2ddl/src/main/resources/hibernate.reveng.xml index 7ac52fd2cf..6b01f11911 100644 --- a/test/maven/src/it/hbm2ddl/src/main/resources/hibernate.reveng.xml +++ b/test/maven/src/it/hbm2ddl/src/main/resources/hibernate.reveng.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/hbm2ddl/verify.groovy b/test/maven/src/it/hbm2ddl/verify.groovy index 14485800e0..51fe9ac8c7 100644 --- a/test/maven/src/it/hbm2ddl/verify.groovy +++ b/test/maven/src/it/hbm2ddl/verify.groovy @@ -1,3 +1,20 @@ +/* + * Hibernate Tools, Tooling for your Hibernate Projects + * + * Copyright 2018-2025 Red Hat, Inc. + * + * 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. + */ import java.io.*; File schema = new File(basedir, "target/generated-resources/schema.ddl"); diff --git a/test/maven/src/it/hbm2java/invoker.properties b/test/maven/src/it/hbm2java/invoker.properties index 4537ab14c4..f26202029c 100644 --- a/test/maven/src/it/hbm2java/invoker.properties +++ b/test/maven/src/it/hbm2java/invoker.properties @@ -1,2 +1,19 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ invoker.java.version = 1.8+ invoker.goals = generate-sources \ No newline at end of file diff --git a/test/maven/src/it/hbm2java/pom.xml b/test/maven/src/it/hbm2java/pom.xml index fef57ef3e9..ab7fc4ee18 100644 --- a/test/maven/src/it/hbm2java/pom.xml +++ b/test/maven/src/it/hbm2java/pom.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/hbm2java/src/main/resources/hibernate.properties b/test/maven/src/it/hbm2java/src/main/resources/hibernate.properties index 71496b3adc..11ceb22106 100644 --- a/test/maven/src/it/hbm2java/src/main/resources/hibernate.properties +++ b/test/maven/src/it/hbm2java/src/main/resources/hibernate.properties @@ -1,3 +1,20 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ hibernate.dialect=org.hibernate.dialect.H2Dialect hibernate.connection.driver_class=org.h2.Driver hibernate.connection.url=jdbc:h2:./test;DB_CLOSE_ON_EXIT=FALSE diff --git a/test/maven/src/it/hbm2java/src/main/resources/hibernate.reveng.xml b/test/maven/src/it/hbm2java/src/main/resources/hibernate.reveng.xml index 7ac52fd2cf..6b01f11911 100644 --- a/test/maven/src/it/hbm2java/src/main/resources/hibernate.reveng.xml +++ b/test/maven/src/it/hbm2java/src/main/resources/hibernate.reveng.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/hbm2java/src/main/resources/templates/pojo/Pojo.ftl b/test/maven/src/it/hbm2java/src/main/resources/templates/pojo/Pojo.ftl index 84ff76a5b2..84525f02b3 100644 --- a/test/maven/src/it/hbm2java/src/main/resources/templates/pojo/Pojo.ftl +++ b/test/maven/src/it/hbm2java/src/main/resources/templates/pojo/Pojo.ftl @@ -1,3 +1,18 @@ +<#-- + ~ Copyright 2018 - 2025 Red Hat, Inc. + ~ + ~ 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. + --> ${pojo.getPackageDeclaration()} // Generated ${date} by Hibernate Tools ${version} diff --git a/test/maven/src/it/hbm2java/src/main/resources/templates/pojo/PojoFields.ftl b/test/maven/src/it/hbm2java/src/main/resources/templates/pojo/PojoFields.ftl index 18cf396cc6..aee63ef908 100644 --- a/test/maven/src/it/hbm2java/src/main/resources/templates/pojo/PojoFields.ftl +++ b/test/maven/src/it/hbm2java/src/main/resources/templates/pojo/PojoFields.ftl @@ -1,3 +1,18 @@ +<#-- + ~ Copyright 2018 - 2025 Red Hat, Inc. + ~ + ~ 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. + --> <#-- // Fields --> <#list pojo.getAllPropertiesIterator() as field><#if pojo.getMetaAttribAsBool(field, "gen-property", true)><#if pojo.hasMetaAttribute(field, "field-description")> /** ${pojo.getFieldJavaDoc(field, 0)} diff --git a/test/maven/src/it/hbm2java/verify.groovy b/test/maven/src/it/hbm2java/verify.groovy index b42495d3d5..3f763eac65 100644 --- a/test/maven/src/it/hbm2java/verify.groovy +++ b/test/maven/src/it/hbm2java/verify.groovy @@ -1,3 +1,20 @@ +/* + * Hibernate Tools, Tooling for your Hibernate Projects + * + * Copyright 2018-2025 Red Hat, Inc. + * + * 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. + */ import java.io.*; File entity = new File(basedir, "target/generated-sources/Person.java"); diff --git a/test/maven/src/it/noPropertiesFile/invoker.properties b/test/maven/src/it/noPropertiesFile/invoker.properties index 4537ab14c4..f26202029c 100644 --- a/test/maven/src/it/noPropertiesFile/invoker.properties +++ b/test/maven/src/it/noPropertiesFile/invoker.properties @@ -1,2 +1,19 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ invoker.java.version = 1.8+ invoker.goals = generate-sources \ No newline at end of file diff --git a/test/maven/src/it/noPropertiesFile/pom.xml b/test/maven/src/it/noPropertiesFile/pom.xml index f5df095891..2fd82aa06d 100644 --- a/test/maven/src/it/noPropertiesFile/pom.xml +++ b/test/maven/src/it/noPropertiesFile/pom.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/noPropertiesFile/verify.groovy b/test/maven/src/it/noPropertiesFile/verify.groovy index 8067fa2e6d..74dc298fb5 100644 --- a/test/maven/src/it/noPropertiesFile/verify.groovy +++ b/test/maven/src/it/noPropertiesFile/verify.groovy @@ -1,3 +1,20 @@ +/* + * Hibernate Tools, Tooling for your Hibernate Projects + * + * Copyright 2018-2025 Red Hat, Inc. + * + * 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. + */ import java.io.*; println "start verify.groovy" diff --git a/test/maven/src/it/settings.xml b/test/maven/src/it/settings.xml index 15b3aee62b..ce5082f466 100644 --- a/test/maven/src/it/settings.xml +++ b/test/maven/src/it/settings.xml @@ -1,4 +1,19 @@ + diff --git a/test/maven/src/it/transformHbm/invoker.properties b/test/maven/src/it/transformHbm/invoker.properties index 13598db400..7bfd9fb4ed 100644 --- a/test/maven/src/it/transformHbm/invoker.properties +++ b/test/maven/src/it/transformHbm/invoker.properties @@ -1,2 +1,19 @@ +############################################################################ +# Hibernate Tools, Tooling for your Hibernate Projects # +# # +# Copyright 2018-2025 Red Hat, Inc. # +# # +# 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. # +############################################################################ invoker.java.version = 1.8+ invoker.goals = generate-resources \ No newline at end of file diff --git a/test/maven/src/it/transformHbm/pom.xml b/test/maven/src/it/transformHbm/pom.xml index 3684d708c3..9bfc028794 100644 --- a/test/maven/src/it/transformHbm/pom.xml +++ b/test/maven/src/it/transformHbm/pom.xml @@ -1,3 +1,18 @@ + 4.0.0 diff --git a/test/maven/src/it/transformHbm/src/main/resources/Foo.hbm.xml b/test/maven/src/it/transformHbm/src/main/resources/Foo.hbm.xml index e65a301ce6..7377ba91d8 100644 --- a/test/maven/src/it/transformHbm/src/main/resources/Foo.hbm.xml +++ b/test/maven/src/it/transformHbm/src/main/resources/Foo.hbm.xml @@ -1,5 +1,20 @@ - + + diff --git a/test/maven/src/it/transformHbm/verify.groovy b/test/maven/src/it/transformHbm/verify.groovy index 7e64214d3e..3a1bd88267 100644 --- a/test/maven/src/it/transformHbm/verify.groovy +++ b/test/maven/src/it/transformHbm/verify.groovy @@ -1,3 +1,20 @@ +/* + * Hibernate Tools, Tooling for your Hibernate Projects + * + * Copyright 2018-2025 Red Hat, Inc. + * + * 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. + */ import java.io.*; File file = new File(basedir, "src/main/resources/Foo.mapping.xml");