Actually the way I would do this is write a perl script that takes a list of
files from the website1 directory structure, and deletes the associated
class files

Here is how you can figure out what file is generated by you cf files (thank
to /charlie)

----------------------------------------
How CFMX creates the .class name, or how you can find the name of the .class
file you want to delete

The formula is: "cf" + filename + hashCode

The fully canonicalized filename is used, with "/" as the directory
separator. The following substitutions are made in the filename:
1.) / becomes __
2.) any other character which would be illegal in a Java identifier is
represented as 2 hex digits

hashCode is the hashCode() of the File object which represents this file as
documented at
http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()

If the hashCode() is negative, it is exclusive-OR'd with 0xFFFFFFFF to get
the value used by ColdFusion.

----------------------------------------


Justin

> -----Original Message-----
> From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2003 12:03
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] CF Class files
>
>
> > Anyway, removing them shouldn't be a problem (and if it is, that's
> short
> > sighted on the development team's part, which it isn't).
>
> That'd be me then  ;-)
>
> I take your point, but if websites 1, 2, 3, 4 and 5 between them all
> have umpteen .cfm files in them and you want to delete just those class
> files which relate to website 2, can you really expect a developer to
> trawl through every .cfm file in website 2, note the date/time they were
> last modified, flip back to the CFMX class cache, try to identify and
> delete the .class files in question?
>
> Man, that's the kind of job I'd delegate  ;-)
>
>
> --
> Aidan Whitehall <[EMAIL PROTECTED]>
> Macromedia ColdFusion Developer
> Fairbanks Environmental Ltd  +44 (0)1695 51775
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
>
>


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

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

Reply via email to