You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/09/05 14:28:05 UTC
[camel-quarkus] branch master updated: Make code generators
checkstyle compliant
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new ba6f784 Make code generators checkstyle compliant
new e262062 Merge pull request #177 from jamesnetherton/fix-templates
ba6f784 is described below
commit ba6f78488854d0a7ae14b4e349c3525f4c7a8f8c
Author: James Netherton <ja...@gmail.com>
AuthorDate: Thu Sep 5 13:35:49 2019 +0100
Make code generators checkstyle compliant
---
build/create-extension-templates/IT.java | 16 ++++++++++++++++
build/create-extension-templates/Processor.java | 16 ++++++++++++++++
build/create-extension-templates/Test.java | 22 +++++++++++++++++++---
build/create-extension-templates/TestResource.java | 8 ++++----
.../TestRouteBuilder.java | 1 -
.../create-extension-templates/deployment-pom.xml | 18 ++++++++++++++++++
.../integration-test-pom.xml | 18 ++++++++++++++++++
build/create-extension-templates/parent-pom.xml | 18 ++++++++++++++++++
build/create-extension-templates/runtime-pom.xml | 18 ++++++++++++++++++
9 files changed, 127 insertions(+), 8 deletions(-)
diff --git a/build/create-extension-templates/IT.java b/build/create-extension-templates/IT.java
index dc31bd0..08def63 100644
--- a/build/create-extension-templates/IT.java
+++ b/build/create-extension-templates/IT.java
@@ -1,3 +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.
+ */
package [=javaPackageBase].it;
import io.quarkus.test.junit.SubstrateTest;
diff --git a/build/create-extension-templates/Processor.java b/build/create-extension-templates/Processor.java
index c718431..06e13a3 100644
--- a/build/create-extension-templates/Processor.java
+++ b/build/create-extension-templates/Processor.java
@@ -1,3 +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.
+ */
package [=javaPackageBase].deployment;
import io.quarkus.deployment.annotations.BuildStep;
diff --git a/build/create-extension-templates/Test.java b/build/create-extension-templates/Test.java
index d133ddc..0f5494f 100644
--- a/build/create-extension-templates/Test.java
+++ b/build/create-extension-templates/Test.java
@@ -1,14 +1,30 @@
+/*
+ * 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.
+ */
package [=javaPackageBase].it;
import java.util.UUID;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
+
@QuarkusTest
class [=artifactIdBaseCamelCase]Test {
diff --git a/build/create-extension-templates/TestResource.java b/build/create-extension-templates/TestResource.java
index a9c067b..e7ad910 100644
--- a/build/create-extension-templates/TestResource.java
+++ b/build/create-extension-templates/TestResource.java
@@ -36,7 +36,7 @@ import org.jboss.logging.Logger;
@ApplicationScoped
public class [=artifactIdBaseCamelCase]Resource {
- private static final Logger log = Logger.getLogger([=artifactIdBaseCamelCase]Resource.class);
+ private static final Logger LOG = Logger.getLogger([=artifactIdBaseCamelCase]Resource.class);
@Inject
ProducerTemplate producerTemplate;
@@ -49,7 +49,7 @@ public class [=artifactIdBaseCamelCase]Resource {
@Produces(MediaType.TEXT_PLAIN)
public String get() throws Exception {
final String message = consumerTemplate.receiveBodyNoWait("[=artifactIdBase]:--fix-me--", String.class);
- log.infof("Received from [=artifactIdBase]: %s", message);
+ LOG.infof("Received from [=artifactIdBase]: %s", message);
return message;
}
@@ -58,9 +58,9 @@ public class [=artifactIdBaseCamelCase]Resource {
@Consumes(MediaType.TEXT_PLAIN)
@Produces(MediaType.TEXT_PLAIN)
public Response post(String message) throws Exception {
- log.infof("Sending to [=artifactIdBase]: %s", message);
+ LOG.infof("Sending to [=artifactIdBase]: %s", message);
final String response = producerTemplate.requestBody("[=artifactIdBase]:--fix-me--", message, String.class);
- log.infof("Got response from [=artifactIdBase]: %s", response);
+ LOG.infof("Got response from [=artifactIdBase]: %s", response);
return Response
.created(new URI("https://camel.apache.org/"))
.entity(response)
diff --git a/build/create-extension-templates/TestRouteBuilder.java b/build/create-extension-templates/TestRouteBuilder.java
index 6a36505..d870e1e 100644
--- a/build/create-extension-templates/TestRouteBuilder.java
+++ b/build/create-extension-templates/TestRouteBuilder.java
@@ -18,7 +18,6 @@ package [=javaPackageBase].it;
import org.apache.camel.builder.RouteBuilder;
-
public class [=artifactIdBaseCamelCase]RouteBuilder extends RouteBuilder {
@Override
public void configure() {
diff --git a/build/create-extension-templates/deployment-pom.xml b/build/create-extension-templates/deployment-pom.xml
index 7378902..7a2e946 100644
--- a/build/create-extension-templates/deployment-pom.xml
+++ b/build/create-extension-templates/deployment-pom.xml
@@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
diff --git a/build/create-extension-templates/integration-test-pom.xml b/build/create-extension-templates/integration-test-pom.xml
index c8cefb9..d975740 100644
--- a/build/create-extension-templates/integration-test-pom.xml
+++ b/build/create-extension-templates/integration-test-pom.xml
@@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
diff --git a/build/create-extension-templates/parent-pom.xml b/build/create-extension-templates/parent-pom.xml
index ec143fc..875313b 100644
--- a/build/create-extension-templates/parent-pom.xml
+++ b/build/create-extension-templates/parent-pom.xml
@@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
diff --git a/build/create-extension-templates/runtime-pom.xml b/build/create-extension-templates/runtime-pom.xml
index e7d3f38..518ab10 100644
--- a/build/create-extension-templates/runtime-pom.xml
+++ b/build/create-extension-templates/runtime-pom.xml
@@ -1,4 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">