Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52C1011EF3 for ; Tue, 2 Sep 2014 02:24:43 +0000 (UTC) Received: (qmail 49401 invoked by uid 500); 2 Sep 2014 02:24:35 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 49329 invoked by uid 500); 2 Sep 2014 02:24:34 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 49318 invoked by uid 99); 2 Sep 2014 02:24:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2014 02:24:34 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of the.warl0ck.1989@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2014 02:24:08 +0000 Received: by mail-ob0-f172.google.com with SMTP id wo20so4364441obc.31 for ; Mon, 01 Sep 2014 19:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qvoJLaUWdBq+2V6tjh08iueGMQ0EdsZnWCU3+/zloL8=; b=qb/v0UOqu+ypATumIcEcDC1oaCqOH2rbGbl/QcjdAa7n/y32+OK2zRFaVtgFN3KR+U kPwDd71EcN6NhC8uq3XBKVNXzutmDXGy9eIYGstPdrrKCeHu4qwqlB5ljHLx50+CDIY9 MtIyiHdL4m0KjRwQ25urr6pjdpEV+6ILBbSkedGOrGEo8js7uxky3Om80AFWwbj/UYtb Jixjwc3yBidMXtHYpGz500PL7SYUaVw9t0KTOyOclwIIGyqb83wKOxBAVc/qbd0VXuXE YCpdpLaciAP0bmN/Exnr5yfYPCSgXPtQUU5d3xrRTMPx/o0zqQtcm0wfCW8CNSMx9xPV 4LQQ== MIME-Version: 1.0 X-Received: by 10.182.249.52 with SMTP id yr20mr29241251obc.10.1409624647250; Mon, 01 Sep 2014 19:24:07 -0700 (PDT) Received: by 10.76.98.49 with HTTP; Mon, 1 Sep 2014 19:24:07 -0700 (PDT) In-Reply-To: References: Date: Tue, 2 Sep 2014 10:24:07 +0800 Message-ID: Subject: Re: How do I call JspC manually? From: Aaron Lewis To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Thanks K, Maybe I did something incorrectly? %> ./bin/tool-wrapper.sh org.apache.jasper.JspC -uriroot 123 -l -s -v -d temp -compile -webapp 123 Sep 02, 2014 10:19:37 AM org.apache.jasper.JspC processFile INFO: Built File: /cmd.jsp [PWD: /run/shm/tomcat6] %> ls -R 123 123: ./ ../ cmd.jsp temp/ WEB-INF/ 123/temp: ./ ../ 123/WEB-INF: ./ ../ web.xml See, nothing is generated. On Mon, Sep 1, 2014 at 3:23 PM, Konstantin Kolinko wrote: > 2014-09-01 10:48 GMT+04:00 Aaron Lewis : >> Hi, >> >> It looks like org.apache.jasper.JspC has a main() method defined, >> So how should I call it to generate the desired .class file? > > > 1) > http://tomcat.apache.org/tomcat-8.0-doc/jasper-howto.html#Web_Application_Compilation > > 2) > Generally, bin/tool-wrapper.bat, bin/tool-wrapper.sh is designed as a > wrapper for such command-line tools, but JspC depends on > org.apache.tools.ant.Task, so you need to have Apache Ant libs on the > classpath. > > 3) > protected static final String SWITCH_HELP = "-help"; > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org