Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 53735 invoked from network); 27 Sep 2010 12:40:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Sep 2010 12:40:01 -0000 Received: (qmail 8729 invoked by uid 500); 27 Sep 2010 12:40:01 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 8671 invoked by uid 500); 27 Sep 2010 12:39:58 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 8664 invoked by uid 99); 27 Sep 2010 12:39:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 12:39:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 12:39:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8RCdX1p002094 for ; Mon, 27 Sep 2010 12:39:34 GMT Message-ID: <28219431.419921285591173958.JavaMail.jira@thor> Date: Mon, 27 Sep 2010 08:39:33 -0400 (EDT) From: "Bob Schellink (JIRA)" To: dev@click.apache.org Subject: [jira] Commented: (CLK-719) Click Resources Deploying prevents rapid development with container's (tomcat in my case) hot deploy In-Reply-To: <2415581.363251285245213986.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLK-719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915290#action_12915290 ] Bob Schellink commented on CLK-719: ----------------------------------- To clarify my question: Click deploys resources as follows: 1: deploy all resources on the ServletPath -> ServletContext#getResourcePaths 2. deploy resources under WEB-INF So if a developer wants to override a resource they can simply create a custom version and put it in their webapp. For example: /click/control.js would override the control.js file deployed by Click itself. With this change the control.js in the Click jar would be deployed over my changes. Another thing to consider is IDE's. In Netbeans at least, it uses an exploded war and would immediately copy changes to J/CSS/HTM files to the output folder. If Click were to override these resources upon startup I'd loose my changes when the server hot-deploys. Does this clarify my question? > Click Resources Deploying prevents rapid development with container's (tomcat in my case) hot deploy > ---------------------------------------------------------------------------------------------------- > > Key: CLK-719 > URL: https://issues.apache.org/jira/browse/CLK-719 > Project: Click > Issue Type: Improvement > Components: core > Affects Versions: 2.2.0, 2.1.0 > Reporter: Andrew Fink > > Example: > I have some template in "META-INF/resources", for ex: META-INF/resources/admin/blabla.ftl > I run tomcat under my IDE: > 1) it deploys webapp - OK > 2) click deploys META-INF/resources/admin/blabla.ftl to webroot/admin/blabla.ftl - OK > Then I see some mistake in blabla.ftl and bug fix it, build and deploy again. > 1. Tomcat re-deploys webapp over existing webapp - OK! > 2. Click doesn't deploy blabla.ftl because It already exists (tomcat/IDE doesn't clean folder). > It is a problem. > __ ClickUtils.deployFile checks only destinationFile.exists() __ > I think in debug|trace mode, Click should: > - always overwrite (redeploy) files, > - or checks resource length (for example: skip all bytes from resource's inputStream to calculate it's length) and if destinationFile.length != resource.length then overwrite (redeploy) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.