----- Original Message -----
From: "Donal Quinlan" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 16:19
Subject: Re: Existing class file are not removed when the corresponding
source file is removed
> We use the deleteAssociated task (relevant java code attached) written by
my
> colleague Richard Hansen. We use it in our regular clean to remove java
> files generated from precompiling jsp's. We have java files that do not
> result from precompiled jsp's in the same directory, so simple delete
> **/*.java tasks would not work.
I wouldnt recommend mixing generated and valued files this way; too risky
>
> Here's an example on how we use it.
>
> <target name="cleanjsp">
> <deleteAssociated Filetype=".java" verbose="true">
> <fileset dir="${webui.dir}/jsp" includes="**/*.jsp"/>
> </deleteAssociated>
> </target>
How do you deal with the fact that any jsp page named after a reserved word,
or with something like a space in it gets renamed?
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>