Try to put anywhere into your XSPs: <xsp:dependency>/absolute/path/to/touchfile</xsp:dependency>
Then you only need to touch that single file to force recompiling all XSPs containing this dependency. HTH, Alfred. > -----Original Message----- > From: Sonny Sukumar [mailto:[EMAIL PROTECTED] > Sent: Sonntag, 24. August 2003 03:52 > To: [EMAIL PROTECTED] > Subject: Re: How to force XSP recompilation? > > > > The constant is in a Java class in a JAR file. Deleting all > _xsp.java and > _xsp.class files will work, although I was hoping for a more elegant > solution. That way many XSPs which don't use the constant at > all will also > have to be regenerated. > > In my case I happened to know which XSP was using it for sure > and did a > "touch" on the linux command line so that Cocoon would > recognize the file > changed (just because the file date/time stamp was updated) > and regenerate > just that XSP. > > Oh well, > > Sonny > > >From: "Roger I Martin PhD" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> > >Subject: Re: How to force XSP recompilation? > >Date: Sat, 23 Aug 2003 21:13:14 -0400 > > > >See mixed comments below... > >----- Original Message ----- > >From: "Sonny Sukumar" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Saturday, August 23, 2003 4:29 PM > >Subject: How to force XSP recompilation? > > > > > > > > > > My problem is this: A snippet of Java code in my XSP references a > >constant > > > of one of my backend Java classes (in a JAR file in WEB-INF/lib). > >However, > > > I changed that constant value, recompiled and remade the > JAR, restarted > > > Tomcat, etc, but my XSP didn't get recompiled simply > because I didn't > >edit > > > the XSP file after that. > > > > > > But since any file depending on a constant in another > class needs to be > > > recompiled if that constant value changes, I was for > awhile wondering > >why > > > the XSP output wasn't changing. > > > > > > Does anybody know how to get Cocoon to handle this > without having to > > > remember everywhere (in what XSPs) that constant is referenced? > > > >The constant is changed only by you as the webapp admin? And then > >restarted > >to serve for your users? If it is under your control you > can delete the > >files under > %TOMCAT_HOME%/work/Catalina/localhost/%YOUR_WEBAPP%. maybe > >just > >all *_xsp.java and *_xsp.class files. When you restart > tomcat and go to > >these pages you should see it take a little time to > recompile and then be > >live. > > > > > > > > Thanks, > > > > > > Sonny > > > > > > _________________________________________________________________ > > > Get MSN 8 and enjoy automatic e-mail virus protection. > > > http://join.msn.com/?page=features/virus > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > _________________________________________________________________ > Get MSN 8 and enjoy automatic e-mail virus protection. > http://join.msn.com/?page=features/virus > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
