VisualGuideToBuildingStendhalStep2

From Arianne
Jump to: navigation, search

Step 2. Install and Configure Ant

Ant is a frontend to the java compiler that makes the building process as easy as double-clicking a batch file (AntDist.cmd).

Step 2.1. Install Ant

First, go to the Apache's Ant website:

http://ant.apache.org/bindownload.cgi

Step21AntInstall01.png

Unzip apache-ant-1.8.2-bin.zip under the C:\ drive

Step21AntInstall02.png

And rename the folder to ant:

Step21AntInstall03.png

This should be the end result:

Step21AntInstall04.png

Step 2.2. Configure Ant

Select this block of text and copy it:

@echo off


REM Change the folder path in the following line if, for example, you have extracted ant without
REM renaming the folder afterwards (even though renaming it is highly recommended)
REM Never leave any space between the variable's name and the equal sign
REM Otherwise, it will simply not work



set ANT_HOME=C:\ant



REM Change the folder path in the following line to the folder path of your
REM own version of Java's JDK
REM Never leave any space between the variable's name and the equal sign
REM Otherwise, it will simply not work



set JAVA_HOME=C:\Archivos de programa\Java\jdk1.6.0_25



REM Do not change the rest of this file

set Path=%Path%;%ANT_HOME%\bin
cmd /c ant dist
pause

Paste it in a notepad document and save it as AntDist.cmd and with 'All Files' as the file type:

Step22AntConfig01.png

From now on, you can right-click on its filename to edit it:

Step22AntConfig02.png

Set ANT_HOME to wherever you have ant installed.

Set JAVA_HOME to wherever you have java JDK installed.

Go to Step 3. Install TortoiseGit