ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Luttrell" <pe...@firepod.com>
Subject RE: compile jsp (request)
Date Wed, 21 Mar 2001 20:10:05 GMT
> >Now there is an interesting task for someone: a URL spider that calls all
> >JSP/ASP/whatever files it finds beneath a URL, fails if one or
> more of the
> >files returns an error or is just plain missing. Of course, detecting an
> >erroneous compilation only works if the servers return an HTTP
> error code,
> >or there is an error pattern to look for...
>
> That would be nice.  It could be part of the get task or inherit from the
> get task.  The question is how does the spider know which files to get?
> There is no way to get a directory listing of available files
> unless the web
> server is setup to allow that.  One possibility is to give it a directory
> and say "for all the filenames in this directory, make a request from this
> root URL for those filenames".
>
> This would be a huge improvement from listing all the files with
> a "get" for
> each one, which is what we had.
>
> matt
>

Actually i was hoping for something a little closer to the make file that we
currently use. It uses tomcats jsp parser to create the java source files
and then uses javac to compile them. Here's a snippet:

parsejsp:
	rmdir /q/s c:\recipio\cac\temp
	$(JAVA) -classpath
C:\jakarta-tomcat-3.2.1\lib\servlet.jar;C:\jakarta-tomcat-3.2.1\lib\webs
erver.jar;C:\jakarta-tomcat-3.2.1\lib\jasper.jar;$(CLASSPATH)
-Dtomcat.home="C:\jakarta-tomcat-3.2.1" org.apache.jasper.JspC  -d
c:\recipio\cac\temp -webapp c:\recipio\cac\src\web\

compileparsedjsp:
	del /q c:\recipio\cac\files.txt
	cd c:\recipio\cac\temp
	dir /s/b/A-d *.java > c:\recipio\cac\files.txt
	$(JAVAC) -d c:\recipio\cac\temp -classpath
$(CAC_TESTCLASSDIR);$(EFOCUS_TESTCLASSDIR);$(NEWSERVLETLIB);$(CLASSPATH)
;"C:\jakarta-tomcat-3.2.1\lib\jasper.jar" @c:\recipio\cac\files.txt


.peter


Mime
View raw message