This is my first ant project, and I just can't get around it. I want to effectively remove the jar and then return it after running unit tests. I think this can be modeled using the exclude command. I also think this should be done under the <classpath> . Am I right in my thoughts? I also want this jar to still exist, I just want my assembly to ignore it when I launch this specific target. I tried this:
<junit fork="no" showoutput="false" printsummary="yes" haltonfailure="false"> <classpath> <fileset dir="${lib.dir}"> <exclude name="**/*xmlparserv2.jar" /> </fileset> </classpath> </junit>
But to no avail. Can someone point me in the right direction?
source share