El conector central de Ant declara un punto de entrada principal que permite la ejecución del soporte de Ant integrado de Eclipse en un entorno autónomo. Una construcción Ant puede ejecutarse entonces directamente desde el lanzador de la plataforma principal.
Este es un ejemplo de archivo .bat que muestra cómo utilizar el punto de entrada de la aplicación antRunner en Windows.
echo off setlocal REM **************************************************** REM El java.exe JRE a utilizar set JAVAEXE="C:\jdk1.4.2\jre\bin\java.exe" REM El startup.jar de Eclipse set STARTUPJAR="C:\eclipse\startup.jar" REM La ubicación del área de trabajo set WORKSPACE=C:\runtime-workspace REM El archivo de construcción a utilizar para la construcción set BUILDFILE=build.xml REM **************************************************** if not exist %JAVAEXE% echo ERROR: incorrect java.exe=%JAVAEXE%, edit this file and correct the JAVAEXE envar if not exist %JAVAEXE% goto done if not exist %STARTUPJAR% echo ERROR: incorrect startup.jar=%STARTUPJAR%, edit this file and correct the STARTUPJAR envar if not exist %STARTUPJAR% goto done if not exist %WORKSPACE% echo ERROR: incorrect workspace=%WORKSPACE%, edit this file and correct the WORKSPACE envar if not exist %WORKSPACE% goto done if not exist %BUILDFILE% echo ERROR: incorrect buildfile=%BUILDFILE%, edit this file and correct the BUILDFILE envar if not exist %BUILDFILE% goto done :run @echo on %JAVAEXE% -cp %STARTUPJAR% org.eclipse.core.launcher.Main -noupdate -application org.eclipse.ant.core.antRunner -data %WORKSPACE% -buildfile %BUILDFILE% :done pause