You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Saurabh Dave <sa...@patni.com> on 2007/06/07 13:13:17 UTC
How we will check the jsp with Ant script
Hi,
Could any one tell me How we can precompile the jsp with Ant, Is
using Maven is essential .
Regards
Saurabh
Re: custom 'compiler' dependencies
Posted by David Weintraub <qa...@gmail.com>.
Use the <uptodate> task to check the verify the source vs. the target
files. This will allow you to set a property if the target is up to
date. Then, you can use this property when you call a target using the
"unless" parameter. That way, you don't run the target if the property
is set.
A bit easier to use is the <outofdate> task in the Ant Contrib tasks.
The <outofdate> task, like the <uptodate> task checks the timestamp of
your target vs. the timestamp of your sources. However, instead of
just setting a property, it will allow you to specify the tasks that
need to be executed.
The <dependset> task is just weird. It does the same thing as the
<uptodate> task, but removes all the targets if any of the targets are
not up to date. This really is only for tasks that do not regenerate
the targets if the targets are up to date, but you want to force all
targets to be rebuilt if any of them are out of date.
However, if you have a task that generates targets, but doesn't do a
good job to see if the target is already up to date, the <dependset>
task isn't what you want.
Hope this helps.
On 6/7/07, Dave Brosius <db...@apache.org> wrote:
> Hello,
>
> I'm trying to figure out how to build custom dependency rules for a
> custom 'compiler' i have written.
>
> I see the DependSet task which is sort of what i need, but i don't see in
> the docs where you can specify
>
> if *.xml is newer than *.java, than run the tool that generates *.java
> from *.xml
>
> Anyone point me to the right info? thanks
>
> dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
custom 'compiler' dependencies
Posted by Dave Brosius <db...@apache.org>.
Hello,
I'm trying to figure out how to build custom dependency rules for a
custom 'compiler' i have written.
I see the DependSet task which is sort of what i need, but i don't see in
the docs where you can specify
if *.xml is newer than *.java, than run the tool that generates *.java
from *.xml
Anyone point me to the right info? thanks
dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How we will check the jsp with Ant script
Posted by Prashant Reddy <pr...@pramati.com>.
On Thu, 2007-06-07 at 16:43 +0530, Saurabh Dave wrote:
> Hi,
>
> Could any one tell me How we can precompile the jsp with Ant, Is
> using Maven is essential .
If you are deploying your JSPs on Tomcat have a look at :
http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html#Web%
20Application%20Compilation
This question has been asked on this forum before :
http://www.nabble.com/forum/Search.jtp?forum=107&local=y&query=jsp
+compilation
A good perspective on this thread:
http://www.nabble.com/Precompile-JSP-tf2361600.html#a6579044
No, Using Maven is not essential.
HTH
--
-Prashant
Don't upload, just share : www.dekoh.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: How we will check the jsp with Ant script
Posted by Saurabh Dave <sa...@patni.com>.
Yah Exactly the same thing is happening , if we are making a build with
jsp's within it how we will came to know that jsp are working fine and not
having any problems..
-----Original Message-----
From: Chun Ji [mailto:CJi@pro-unlimited.com]
Sent: Saturday, June 09, 2007 2:41 AM
To: Ant Users List; saurabh.dave@patni.com
Subject: RE: How we will check the jsp with Ant script
If I have lots of jsp files, and they have some fancy dependence of each
other, I would not use "tomcat" or "jboss" to do the precompile, because it
will give you nothing, but pain.
Chun
-----Original Message-----
From: Saurabh Dave [mailto:saurabh.dave@patni.com]
Sent: Thursday, June 07, 2007 4:13 AM
To: user@ant.apache.org
Subject: How we will check the jsp with Ant script
Importance: Low
Hi,
Could any one tell me How we can precompile the jsp with Ant, Is
using Maven is essential .
Regards
Saurabh
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: How we will check the jsp with Ant script
Posted by Chun Ji <CJ...@pro-unlimited.com>.
If I have lots of jsp files, and they have some fancy dependence of each other, I would not use "tomcat" or "jboss" to do the precompile, because it will give you nothing, but pain.
Chun
-----Original Message-----
From: Saurabh Dave [mailto:saurabh.dave@patni.com]
Sent: Thursday, June 07, 2007 4:13 AM
To: user@ant.apache.org
Subject: How we will check the jsp with Ant script
Importance: Low
Hi,
Could any one tell me How we can precompile the jsp with Ant, Is
using Maven is essential .
Regards
Saurabh
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org