title: Trying to run ANT JUnit target in debug mode in Eclipse
body: <p>Here is my ANT JUnit target</p>
  
  <pre><code>&lt;target name="test" depends="compile" &gt;
      &lt;junit failureProperty="test.failure" &gt;
  
          &lt;jvmarg value="-Xdebug" /&gt;
          &lt;jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5432" /&gt;
  
          &lt;classpath&gt;
              &lt;pathelement path="${basedir}\..\Core\lib\junit-4.10.jar"/&gt;
              &lt;pathelement path="${basedir}\..\Suggestion\lib\ssce.jar"/&gt;
              &lt;pathelement path="C:\Java\javamail-1.4.1\mail.jar"/&gt;
              &lt;pathelement path="C:\Java\commons-net-2.0\commons-net-ftp-2.0.jar"/&gt;
              &lt;pathelement path="${basedir}\WebContent\WEB-INF\lib\gson-2.2.1.jar"/&gt;
              &lt;pathelement path="${tomcatLibs}\servlet-api.jar"/&gt;
          &lt;/classpath&gt;
          &lt;classpath&gt;
              &lt;pathelement path="${build}"/&gt;
          &lt;/classpath&gt;
          &lt;formatter type="brief" usefile="false" /&gt;          
          &lt;test name="com.server.junit.ServerTestSuite" /&gt;
          &lt;test name="com.junit.DictionaryTestSuite" /&gt;   
          &lt;test name="com.util.junit.SuggestionTestSuite" /&gt;              
      &lt;/junit&gt;
  
      &lt;fail message="Unit test failed" if="test.failure"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>My unit tests pass fine if run through Eclipse but fail if I laund them from ANT.
  I want it to stop at my break point in a Unit test. 
  From documentation I know I need to add these jvmarg but can't get it to stop so I obviously don't have them in the right place.
  Also,  I don't think I have the port correct but what port should I use?  I didn't have to set up any debug port when debugging JUnits through eclipse, it just worked</p>