I want to my ant junit target to accept a String value from user. This String value will basically be the package name .The junit target should run the test present under this package and not any other test. How do i do the same. Currently , my junit target looks like this:
<target name="junit" if="run.junit">
<junit dir="${project.root}" fork="true">
<classpath>
<path refid="junit.classpath"/>
</classpath>
<batchtest >
<fileset dir="test">
</fileset>
</batchtest>
</junit>
</target>
How do i modify this to run the tests only as per the given input?