Ant delete task

Posted by user315228 on Stack Overflow See other posts from Stack Overflow or by user315228
Published on 2010-06-01T11:27:19Z Indexed on 2010/06/01 11:33 UTC
Read the original article Hit count: 322

Filed under:

Hi,

I have several files with name abc* and i want to delete all those files. is it possible using ant task. For eg. my directory structure is:

c:\ myapp\ abc.xml abc.txt abc-1.2.xml abc-abc.xml abcdef.xml pqr.xml xyz.xml abc\

so from this, i need to delete all abc* files. So if i use ant it should delete following: abc.xml abc.txt abc-1.2.xml abc-abc.xml abcdef.xml

it should leave directory with abc*

Can somebody help me.

Almas

© Stack Overflow or respective owner

Related posts about ant