You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/03/03 08:56:03 UTC
[camel] branch camel-3.x updated (9fda42d292a -> ad20af6246b)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
from 9fda42d292a [Minor] add license to top of archetype-catalog for check style pass
new a1763bc796d Revert "[Minor] add license to top of archetype-catalog for check style pass"
new ad20af6246b Revert "[Minor] exclude "**/test/resources/**/*.xml" from checkstyle to repair checkstyle"
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
parent/pom.xml | 2 +-
.../packaging/PackageArchetypeCatalogMojo.java | 22 ++--------------------
2 files changed, 3 insertions(+), 21 deletions(-)
[camel] 02/02: Revert "[Minor] exclude "**/test/resources/**/*.xml" from checkstyle to repair checkstyle"
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit ad20af6246b10a8639bb13ad5c57dde9552f7861
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 3 09:55:48 2023 +0100
Revert "[Minor] exclude "**/test/resources/**/*.xml" from checkstyle to repair checkstyle"
This reverts commit f7df086211efc94263deee85bf05b128b72a6ca2.
---
parent/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parent/pom.xml b/parent/pom.xml
index a4fb465b3c9..9bfd30e71ac 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -4260,7 +4260,7 @@
</sourceDirectories>
<headerLocation>header-java.txt</headerLocation>
<includes>**/*.java,**/*.groovy,**/*.scala,**/*.properties,**/*.xml,**/*.xsd</includes>
- <excludes>${sourcecheckExcludesComma}**/archetype-resources/**/*.java,**/archetype-resources/**/*.groovy,**/archetype-resources/**/*.scala,**/archetype-resources/**/*.xml,**/org/json/simple/**/*.java,**/test/resources/**/*.xml</excludes>
+ <excludes>${sourcecheckExcludesComma}**/archetype-resources/**/*.java,**/archetype-resources/**/*.groovy,**/archetype-resources/**/*.scala,**/archetype-resources/**/*.xml,**/org/json/simple/**/*.java</excludes>
</configuration>
<goals>
<goal>check</goal>
[camel] 01/02: Revert "[Minor] add license to top of archetype-catalog for check style pass"
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
commit a1763bc796d43a53513ef4cfd0802e8fc08cd9e3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 3 09:55:42 2023 +0100
Revert "[Minor] add license to top of archetype-catalog for check style pass"
This reverts commit 9fda42d292a4d447e46f18dc08a949e915273b8f.
---
.../packaging/PackageArchetypeCatalogMojo.java | 22 ++--------------------
1 file changed, 2 insertions(+), 20 deletions(-)
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageArchetypeCatalogMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageArchetypeCatalogMojo.java
index e0d39297c3c..928c18e8404 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageArchetypeCatalogMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageArchetypeCatalogMojo.java
@@ -205,26 +205,8 @@ public class PackageArchetypeCatalogMojo extends AbstractMojo {
}
private static void writeTop(FileOutputStream fos) throws IOException {
- fos.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n".getBytes());
- writeLicense(fos);
- fos.write("<archetype-catalog>\n <archetypes>".getBytes());
- }
-
- private static void writeLicense(FileOutputStream fos) throws IOException {
- fos.write("<!--\n\n".getBytes());
- fos.write(" Licensed to the Apache Software Foundation (ASF) under one or more\n".getBytes());
- fos.write(" contributor license agreements. See the NOTICE file distributed with\n".getBytes());
- fos.write(" this work for additional information regarding copyright ownership.\n".getBytes());
- fos.write(" The ASF licenses this file to You under the Apache License, Version 2.0\n".getBytes());
- fos.write(" (the \"License\"); you may not use this file except in compliance with\n".getBytes());
- fos.write(" the License. You may obtain a copy of the License at\n".getBytes());
- fos.write("\n http://www.apache.org/licenses/LICENSE-2.0\n\n".getBytes());
- fos.write(" Unless required by applicable law or agreed to in writing, software\n".getBytes());
- fos.write(" distributed under the License is distributed on an \"AS IS\" BASIS,\n".getBytes());
- fos.write(" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n".getBytes());
- fos.write(" See the License for the specific language governing permissions and\n".getBytes());
- fos.write(" limitations under the License.\n".getBytes());
- fos.write("\n-->\n".getBytes());
+ String top = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<archetype-catalog>\n <archetypes>";
+ fos.write(top.getBytes());
}
private static class ArchetypeModel {