VisualGuideToBuildingStendhalStep4: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Kymara
remove reference to ant convertmaps
imported>Oslsachem
updated
Line 1: Line 1:
==Step 4. Compile Stendhal using ant==
==Step 4. Get the Stendhal source using TortoiseCVS==


Create, wherever you like, a folder named ''CVSProjects'' which can be used to store all the projects you download using CVS.
Open the command prompt window and <tt>cd</tt> to ''C:\development\stendhal'' (Note: there's a ''build.xml'' file in that folder).


[[File:Step4StendhalSourceCVS01.png]]
http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step4CompileStendhal/Step4CompileStendhal01.png


Right-click on this folder, and pick CVS Checkout... from the pop-up menu.
Type <tt>ant clean</tt> and press <tt>enter</tt><br>Note: <tt>ant clean</tt> is a harmless command that only deletes what it considers unused or unnecessary files and folders. You can use it anytime, but not immediately after typing <tt>ant compile</tt> because it deletes your compiled binaries too and you would have to compile again.


[[File:Step4StendhalSourceCVS02.png]]
http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step4CompileStendhal/Step4CompileStendhal02.png


The Checkout Dialog will appear with the following fields:
*Type <tt>ant compile</tt> (or simply <tt>ant</tt>) and press <tt>enter</tt>


[[File:Step4StendhalSourceCVS03.png]]
http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step4CompileStendhal/Step4CompileStendhal05.png


*Close the window (type exit or click the X)
Fill out the marked fields accordingly and then click on [ Fetch List... ]:


[[File:Step4StendhalSourceCVS04.png]]
Go to [[VisualGuideToBuildingStendhalStep5|Step 5. Move compiled files to server and client folders]]

The list of available modules appears on the right panel:

[[File:Step4StendhalSourceCVS05.png]]

Choose stendhal from the module drop-down list:

[[File:Step4StendhalSourceCVS06.png]]

Click on [ OK ] to begin the downloading process:

[[File:Step4StendhalSourceCVS07.png]]

This process may take quite some time, so be patient:

[[File:Step4StendhalSourceCVS08.png]]

When you read ''Success, CVS operation completed'', you can click [ OK ] to close the window:

[[File:Step4StendhalSourceCVS09.png]]

'''Note:''' From now on, to update the stendhal source files, you just have to right-click on the newly created ''stendhal'' folder (inside the ''CVSProjects'' folder) and choose Update.

[[File:Step4StendhalSourceCVS10.png]]

This process will take much less time than the initial checkout process.

[[File:Step4StendhalSourceCVS11.png]]

Go to [[VisualGuideToBuildingStendhalStep5|Step 5. Build the Stendhal distribution using Ant (which uses JDK)]]