tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Lewis <the.warl0ck.1...@gmail.com>
Subject Re: How do I call JspC manually?
Date Tue, 02 Sep 2014 02:31:58 GMT
BTW the ant way works fine.

I'm just trying to understand how the JspC class works

On Tue, Sep 2, 2014 at 10:24 AM, Aaron Lewis <the.warl0ck.1989@gmail.com> wrote:
> 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
> <knst.kolinko@gmail.com> wrote:
>> 2014-09-01 10:48 GMT+04:00 Aaron Lewis <the.warl0ck.1989@gmail.com>:
>>> 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



-- 
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


Mime
View raw message