AntRunner ¾ÖÇø®ÄÉÀÌ¼Ç ½ÃÀÛÁ¡

Ant ÄÚ¾î Ç÷¯±×ÀÎÀº ¸í·ÉÇà ¸ðµå(headless) ȯ°æ¿¡¼­ EclipseÀÇ ÅëÇÕ Ant Áö¿øÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÏ´Â ±âº» ½ÃÀÛÁ¡À» ¼±¾ðÇÕ´Ï´Ù. ±×·¯¸é Ant ºôµå¸¦ ±âº» Ç÷§Æû ½ÇÇà±â¿¡¼­ Á÷Á¢ ½ÇÇàÇÒ ¼ö ÀÖ½À´Ï´Ù.

´ÙÀ½Àº Windows¿¡¼­ antRunner ¾ÖÇø®ÄÉÀÌ¼Ç ½ÃÀÛÁ¡À» ÀÌ¿ëÇÏ´Â ¹æ¹ýÀ» º¸¿©ÁÖ´Â ¿¹Á¦ .bat ÆÄÀÏÀÔ´Ï´Ù.

 
echo off
setlocal

REM ****************************************************

REM The JRE java.exe to be used
set JAVAEXE="C:\jdk1.4.2\jre\bin\java.exe"

REM The Eclipse launcher jar
set LAUNCHERJAR="C:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.0.v20070319.jar"

REM The location of your workspace
set WORKSPACE=C:\runtime-workspace

REM The buildfile to use for the build
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 %LAUNCHERJAR% echo ERROR: incorrect equinox.launcher jar=%LAUNCHERJAR%, edit this file and correct the LAUNCHERJAR envar
if not exist %LAUNCHERJAR% 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 %LAUNCHERJAR% org.eclipse.equinox.launcher.Main -noupdate -application org.eclipse.ant.core.antRunner -data %WORKSPACE% -buildfile %BUILDFILE%

:done
pause

°ü·Ã °³³ä
Ant Áö¿ø