user2548441
user2548441

Reputation: 97

ant clean issue with special character

If I run ant clean for

<target name="clean">
      <delete file="Project.jar"/>
     </target>

It deletes the jar file

if I use

<target name="clean">
   <delete file="*.jar"/>
 </target>

it doesn't delete the any .jar that is in the directory.

Can someone please let me know what am I missing? Thank you

Upvotes: 0

Views: 77

Answers (1)

Brant Unger
Brant Unger

Reputation: 443

<delete>
    <fileset dir="${basedir}/somedirectory" includes="*.jar"/>
</delete>

This will delete all .jar files in some directory. We can't see the special character you have anywhere in the code you provided though, so I am not sure if this is what you need...?

Upvotes: 1

Related Questions