Change working directory in ant junit task
问题 I have a ant file that runs JUnits tests. These tests rely on a relative path to certain configuration files. I've tried to set the working directory for the batch test, but fail. I want the working directory to be ${plugins.dir}/${name} The JUnit part of the ant script: <junit haltonfailure="no" printsummary="on" fork="true" showoutput="true" dir="${plugins.dir}/${name}"> <jvmarg value="-Duser.dir=${plugins.dir}/${name}"/> <classpath> <path refid="project.classpath"/> <pathelement location="