ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Existing class file are not removed when the corresponding source file is removed
Date Sat, 02 Mar 2002 00:55:39 GMT

----- Original Message -----
From: "Donal Quinlan" <donal@savvion.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message