JSPc excludes?

2005-04-18 Thread Bill Lynch
Guys,

I've been using the JSPc task (org.apache.jasper.JspC) to compile a set of 
JSPs. So far so good, but I now want to exclude a few of the JSPs from being 
precompiled. Unfortuntely, there's no attribute (that I know of) in the JSPc 
task to do this. Am I missing something here?

Thanks,
--Bill


Re: JSPc excludes?

2005-04-18 Thread Bill Lynch
Guys,

Sorry to ask a redundant question -- I looked on the list archives and found 
my answer:
http://marc.theaimsgroup.com/?l=tomcat-userm=110607458931449w=2

No possiblity of doing excludes.

I'm going to try to hack in this functionality to the
org.apache.jasper.JspCclass but I'm unclear as to how it's working.
First off, the class doesn't
extend org.apache.tools.ant.Task. Anyone know how this class actually works?

Thanks,
--Bill

On 4/18/05, Bill Lynch [EMAIL PROTECTED] wrote:
 
 Guys,
 
 I've been using the JSPc task (org.apache.jasper.JspC) to compile a set of 
 JSPs. So far so good, but I now want to exclude a few of the JSPs from being 
 precompiled. Unfortuntely, there's no attribute (that I know of) in the JSPc 
 task to do this. Am I missing something here?
 
 Thanks,
 --Bill



Merge webapp doc roots

2005-02-22 Thread Bill Lynch
All,

I'm developing a webapp and for various reasons it has multiple
document roots which can override each other. For example, c:\webapp
is one directory, but c:\webapp-editionA and c:\webapp-editionB are
other editions of the same application. There are a base set of JSPs
in the 'webapp' directory and some of those are overridden in the
'edition' directories. I do my development in different modes -- so if
I'm developing the webapp for edition A I'll need the jsp's from the
base directory plus those in the A directory.

Resin has a new merge() function which will merge together different
doc roots for a webapp:

web-app id=/foo
document-directory=merge:(c:\webapp;c:\webapp-editionA); .. /

This means everything in webapp-editionA will override what's in
webapp. I do this right now and it works perfectly for development.

My question is -- is this possible in Tomcat? I'd like to use Tomcat
for more dev, mostly because of it's blazing fast JSP compilation in
5.5 (very impressive BTW!).

Thanks in advance,
--Bill

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Merge webapp doc roots

2005-02-22 Thread Bill Lynch
QM,

Yes, I could definitely do that but the nice thing now is that I don't
need to use a build process to copy  merge so it's nice and fast.

Thanks anyway,
--Bill

On Tue, 22 Feb 2005 19:12:23 -0600, QM [EMAIL PROTECTED] wrote:
 On Tue, Feb 22, 2005 at 02:08:50PM -0800, Bill Lynch wrote:
 : Resin has a new merge() function which will merge together different
 : doc roots for a webapp:
 :  [snip]
 : web-app id=/foo
 : document-directory=merge:(c:\webapp;c:\webapp-editionA); .. /
 :
 : This means everything in webapp-editionA will override what's in
 : webapp. I do this right now and it works perfectly for development.
 :
 : My question is -- is this possible in Tomcat?
 
 To my knowledge, no, this is not possible using Tomcat alone.  Tomcat
 expects a standard webapp (that is, either wrapped in a WAR file or in
 exploded-dir format).
 
 You can achieve what you're after by moving the merge into your build
 process -- that is, have Ant (or whatever you use) create the dir/WAR by
 copying all of those webapps to it (that is, copy them over one
 another).
 
 -QM

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]