essobedo commented on code in PR #12240:
URL: https://github.com/apache/camel/pull/12240#discussion_r1408032062


##########
components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java:
##########
@@ -1142,15 +1194,20 @@ protected CamelServlet createServletForConnector(
         holder.setInitParameter(CamelServlet.ASYNC_PARAM, 
Boolean.toString(endpoint.isAsync()));
         context.addServlet(holder, "/*");
 
-        File file = File.createTempFile("camel", "");
-        boolean result = file.delete();
-        if (!result) {
-            LOG.error("failed to delete {}", file);
+        String location = endpoint.getFilesLocation();
+        if (location == null) {
+            File file = File.createTempFile("camel", "");
+            boolean result = file.delete();
+            if (!result) {
+                LOG.error("failed to delete {}", file);

Review Comment:
   Actually, if you check well it is not my code, this is the existing code 
that I simply moved into a if-block



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to