ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Christopherson <da...@nvisia.com>
Subject RE: compile jsp (request)
Date Wed, 21 Mar 2001 21:33:53 GMT
I've moved this to the ant-user list because it requires no developement.

Create a 'parsejsp' target that uses a 'java' task to run the jasper JSP
compiler, then make your 'compileparsedjsp' target run a javac task on the
results. If you want it to work the same way, do it the same way.


> 
> 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
> 

-- 
Dan Christopherson (danch) 
nVisia Technical Architect (www.nvisia.com)

Opinions expressed are mine and do not neccessarily reflect any 
position or opinion of nVISIA.

---------------------------------------------------------------------------
If you're a capitalist and you have the best goods and they're 
free, you don't have to proselytize, you just have to wait.
-Eben Moglen



Mime
View raw message