You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Corbin <dc...@imperitek.com> on 2001/03/16 14:05:59 UTC

Open source JSPC

Is there an ant-task that will invoke an open-source JSP compiler?  I
assume that tomcat has one it.  (I know there is a WebLogic one, but...)
-- 
David Corbin 		
dcorbin@imperitek.com

Re: Open source JSPC

Posted by David Corbin <dc...@imperitek.com>.
Nick Christopher wrote:
> 
> David Corbin wrote:
> 
> > Is there an ant-task that will invoke an open-source JSP compiler?  I
> > assume that tomcat has one it.  (I know there is a WebLogic one, but...)
> > --
> > David Corbin
> > dcorbin@imperitek.com
> 
> You can just (Assumes all your JSPs are in ./jsp - modify to needs):
> 
>   <java classname="org.apache.jasper.JspC" taskname="jspc"
>   failonerror="true">
>       <arg value="-d" />
>       <arg file="jsp" />
>       <arg value="-webxml" />
>       <arg file="jsp/web.xml" />
>       <arg value="-webapp" />
>       <arg file="jsp" />
>       <classpath refid="classpath" />
>    </java>


Can you point me at some documentation that covers those arguments? java
-? doesn't touch on them...

-- 
David Corbin 		
dcorbin@imperitek.com

Re: Open source JSPC

Posted by Nick Christopher <nw...@visionics.com>.
David Corbin wrote:

> Is there an ant-task that will invoke an open-source JSP compiler?  I
> assume that tomcat has one it.  (I know there is a WebLogic one, but...)
> --
> David Corbin
> dcorbin@imperitek.com

You can just (Assumes all your JSPs are in ./jsp - modify to needs):

  <java classname="org.apache.jasper.JspC" taskname="jspc"
  failonerror="true">
      <arg value="-d" />
      <arg file="jsp" />
      <arg value="-webxml" />
      <arg file="jsp/web.xml" />
      <arg value="-webapp" />
      <arg file="jsp" />
      <classpath refid="classpath" />
   </java>