cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Alfred" <Alfred.Nathan...@swx.com>
Subject RE: How to force XSP recompilation?
Date Sun, 24 Aug 2003 09:44:11 GMT
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:ahimsadesi@hotmail.com]
> Sent: Sonntag, 24. August 2003 03:52
> To: users@cocoon.apache.org
> 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" <hypernexdev@hypernexinc.com>
> >Reply-To: users@cocoon.apache.org
> >To: <users@cocoon.apache.org>,<ssukumar@ecologyfund.net>
> >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" <ahimsadesi@hotmail.com>
> >To: <users@cocoon.apache.org>
> >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: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >For additional commands, e-mail: users-help@cocoon.apache.org
> >
> 
> _________________________________________________________________
> Get MSN 8 and enjoy automatic e-mail virus protection.    
> http://join.msn.com/?page=features/virus
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
>

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message