VisualGuideToBuildingStendhalStep2

From Arianne
Revision as of 22:50, 27 March 2006 by imported>Oslsachem
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Step 2. Install and Configure Ant

Ant is a frontend to the java compiler that makes the compiling process as easy as typing ant (with or without options) inside a folder where there is a build.xml file.

Step 2.1. Install Ant

Go to the Apache Ant's website and download the following binary installer package: apache-ant-1.6.5-bin.zip

Unzip ant under C:\ant folder

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step21AntInstall/Step21AntInstall01.png

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step21AntInstall/Step21AntInstall02.png

Step 2.2. Configure Ant

Go to Start-> Configuration -> Control Panel

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure01.png

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure02.png

Select the Advanced tab and then click on Environment Variables:

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure03.png

In User Variables click on New

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure04.png

Set Variable name to ANT_HOME and Variable value to C:\ant and click on Accept

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure05.png

Again, in User Variables click on New

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure04.png

Set Variable name to JAVA_HOME and Variable value to C:\Program Files\Java\jdk1.5.0_06 (or wherever you have installed java JDK) and click on Accept

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure06.png

Now look for Path variable in System Variables and click on Modify:

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure07.png

Note: The PATH is a series of directories separated by semi-colons (;). Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for Ant in the path at a time (those following the first are ignored), so if one is already present, you can update it to C:\ant\bin

Warning: Be careful when editing the path or you can end with an unworking system. Just be careful enough to add the values to the end of your path after a semmicolon without deleting any other previous values. When you are in doubt that you may have deleted something that was there previously, just click on Cancel and begin again.

Click on the Variable value text box, go to the end with End key and add ;C:\ant (ommit the preceding semicolon if there's already one) and click on Accept

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure08.png

Note: Capitalization doesn't matter.

Click on Accept:

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure09.png

Again, click on Accept:

http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step2AntInstallAndConfigure/Step22AntConfigure/Step22AntConfigure10.png

The new path takes effect in each new Command Prompt window you open after setting the PATH variable.

Go to Step 3. Install Stendhal-server sources or map editor CVS sources