ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Schapitz <>
Subject Re: deleting specific files
Date Sat, 07 Feb 2004 22:28:44 GMT
Casey Crabb wrote:

>I have two parallel source branches, one for unittests and one for
>implementation. Both of these branches compile into a single
>codebase. For example:
>Both of these compile into
>I'd like to write an ant script that will remove only the files that
>were built from the test base, leaving the files that resulted from
>compiling the src base. I'd like to do this without having to
>individually specify files, as I could easily have more than a hundred
>files under the test base.
>Is there an Ant task which will scrape the source path for files
>names, then delete their counterparts in the destination path?
>To unsubscribe, e-mail:
>For additional commands, e-mail:
While I'm too using the approach Donald has suggested, there is still an 
option. Junit best practices recommend suffixing all your test class 
names with 'Test'.
So you might employ filters like **/*Test.class and **/*Test$$*.class to 
catch your
test classes (the second one is meant to get inner classes, the 
duplication of  the
$$ should escape it.)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message