You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Chalakanth <cr...@SEEC.com> on 2003/12/16 19:20:47 UTC

Incremental build using Jspc

Hi,

I am using the "webapp" option to build a whole web application. 
My problem is that everytime I run the task, the whole application is being
pre-compiled, not just the Jsps I touched. 

Our group wants to use the pre-compiled servlets for debugging.  This
becomes impractical if the compile cycle takes 5 minutes.  

Does anybody have any ideas?  Have I missed some attribute?  The
documentation does say that Jspc does basic dependency checking.  

I am using 1.5.4 on NT 2000. I have included the task below.  

<target name="prec-portal" >
    <jspc srcdir="${app.web}" 
	  destdir="${app.src}" 
	  package="test.csportal" 
	  webxml="${app.web}/WEB-INF/compiled.xml" verbose="3">		
       <classpath refid="jsp.precompile.classpath"/>
       <webapp basedir="${app.web}"/>
    </jspc>
</target>
 
thanks, 

chalakanth

Re: Incremental build using Jspc

Posted by Antoine Levy-Lambert <an...@antbuild.com>.
Hi Chalakanth,

I do not have a clue concerning this issue.

I found this posting by Steve Loughran :
http://marc.theaimsgroup.com/?l=ant-user&m=104498966922398&w=2

It might still apply.

A search in bugzilla might be interesting too.
Actually, I found this :
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19762
" jspc task is always recompiling files even if they are up-to-date "

You might want to vote for the bug and add your email address as CC on the
bug report.

Cheers,

Antoine
----- Original Message -----
From: "Chalakanth" <cr...@SEEC.com>
To: <us...@ant.apache.org>
Sent: Tuesday, December 16, 2003 7:20 PM
Subject: Incremental build using Jspc


> Hi,
>
> I am using the "webapp" option to build a whole web application.
> My problem is that everytime I run the task, the whole application is
being
> pre-compiled, not just the Jsps I touched.
>
> Our group wants to use the pre-compiled servlets for debugging.  This
> becomes impractical if the compile cycle takes 5 minutes.
>
> Does anybody have any ideas?  Have I missed some attribute?  The
> documentation does say that Jspc does basic dependency checking.
>
> I am using 1.5.4 on NT 2000. I have included the task below.
>
> <target name="prec-portal" >
>     <jspc srcdir="${app.web}"
>   destdir="${app.src}"
>   package="test.csportal"
>   webxml="${app.web}/WEB-INF/compiled.xml" verbose="3">
>        <classpath refid="jsp.precompile.classpath"/>
>        <webapp basedir="${app.web}"/>
>     </jspc>
> </target>
>
> thanks,
>
> chalakanth
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Incremental build using Jspc

Posted by Philippe Valle <pv...@eprocess.fr>.
Chalakanth wrote:

>Hi,
>
>I am using the "webapp" option to build a whole web application. 
>My problem is that everytime I run the task, the whole application is being
>pre-compiled, not just the Jsps I touched. 
>
>Our group wants to use the pre-compiled servlets for debugging.  This
>becomes impractical if the compile cycle takes 5 minutes.  
>
>Does anybody have any ideas?  Have I missed some attribute?  The
>documentation does say that Jspc does basic dependency checking.  
>
>I am using 1.5.4 on NT 2000. I have included the task below.  
>
><target name="prec-portal" >
>    <jspc srcdir="${app.web}" 
>	  destdir="${app.src}" 
>	  package="test.csportal" 
>	  webxml="${app.web}/WEB-INF/compiled.xml" verbose="3">		
>       <classpath refid="jsp.precompile.classpath"/>
>       <webapp basedir="${app.web}"/>
>    </jspc>
></target>
> 
>thanks, 
>
>chalakanth
>
>  
>
Could you give your compiled.xml file.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org