Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: JspC problem

David Ramsey

2004-01-28

Replies:

I don't claim to be an Ant master but from first look, Ant appears
doing exactly what you have told it to do. You may want to look at the
jspC task documentation in the Ant manual. Additionally, I believe
destdir attribute is required, even if you specify uribase attribute.


See: http://ant.apache.org/manual/OptionalTasks/jspc.html


--- Massimo Ferrari <massimo.ferrari@(protected):
> Hello,
> I'm trying to precompile my jsps with the JspC ant task.
> The problem ist that jspc ignores my jsps directory structure when it
> generates the servlet files: the files are flattened.
>
>   <taskdef classname="org.apache.jasper.JspC" name="jasper2"
> classpathref="jspc.classpath">
>   </taskdef>
>
>   <jasper2
>          package="jsps"
>         validateXml="false"
>         uriroot="${app.home}/web"
>         webXmlFragment="${app.home}/generated_web.xml"
>         outputDir="${app.home}/jsps" />
>
> All the jsps are generated to ${app.home}/jsps. Jsps with the same
> name
> but originally in different folders are overwritten.
> Thank you for any help!
> Massimo
>


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.