SVN acquisition

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

SVN acquisition

constrainer
Before I hijack the AA50 bug thread any further.
constrainer/Seidelin wrote
Can someone please point help me? I want to get the latest SVN to test but I am unsure how. I have tortoiseSVN and found the SVN trunk and exported it. Now I would imagine I have to compile the java to get it working. How do I go about doing that? I know how to use the cmd and do javac but which file do I point to?
thanks
-
I suppose you have read this: http://triplea.sourceforge.net/mywiki/Developers
Basically you need Java SDK and "ant". Then you can compile by writing e.g. "ant zip" in command prompt in trunk\triplea folder (this creates a zip file ready to unzip and play). Ant takes a little tinkering to set up with environment variables etc. so it is not for noobs.
I haven't installed eclipse yet, so I do my code changes in notepad or netbeans.
-

Your right it's not noob friendly. I can't figure out how to install ant. What does "run ant:" mean? Is that a command or something else? I have been searching online for answers and can't find any.
-
I did warn you about ant. If you don't know how to set up environment variables in windows, as I assume you are using, then my advice would be to give up and test the unstable releases. Your time will be better spent testing than failing to compile your own.
If you are an l33t h4x0r  and know all about setting up environment variables etc. then surely you can find and follow the installation guide on ant.apache.org - I can't help you more than that.
I am a wanna be l33t h4x0r. I understand if it's to much trouble to help me Seidelin and I do appreciate you responding because you have given me some key words in which I have gotten that much closer to figuring this out. If anyone else has any words of wisdom they would like to share please do.
I am trying to install ant to be able to compile java to get the latest SVN for testing. I am running win xp.
Reply | Threaded
Open this post in threaded view
|

Re: SVN acquisition

Seidelin
To get the source code you need an SVN client, like TortoiseSVN. This program is used to download and update source code.
When you have installed TortoiseSVN you shall point it to this path:
https://triplea.svn.sourceforge.net/svnroot/triplea

To do that, you right click a folder locally on your harddrive and select SVN Checkout and paste the above path in the dialog. It will take quite a long time to checkout the code. Optionally you can just checkout the trunk folder (this is where daily code updates are usually done), by adding /trunk to the above path. This will be significantly faster.

Good luck.
Reply | Threaded
Open this post in threaded view
|

Re: SVN acquisition

Seidelin
In reply to this post by constrainer
Oh, just realized you have TortoiseSVN installed and the code already. Installing ant, just follow the guide. To add environment variables you:
Right click my computer -> Properties -> Advanced tab -> Environment variables. From there you should be able to figure it out. If you have any specific points you have problems when installing ant, then do ask again and be as specific you can in where in the guide you are failing.
Reply | Threaded
Open this post in threaded view
|

Re: SVN acquisition

subotai
How do I get the svn with linux ubuntu?
Reply | Threaded
Open this post in threaded view
|

Re: SVN acquisition

Seidelin
Google tells me this:
http://agaricdesign.com/note/subversion-client-ubuntu-anything-tortoisesvn

Read the section under "Resolution".
Of course you should replace the server path so the checkout looks like this:
svn checkout https://triplea.svn.sourceforge.net/svnroot/triplea myworkingcopyfolder

Later you update your sources with
svn update
Reply | Threaded
Open this post in threaded view
|

Re: SVN acquisition

constrainer
In reply to this post by Seidelin
ant install guide wrote
Download the version you want here, unpack the downloaded zip file wherever you want, and copy the ivy jar file in your ant lib directory (ANT_HOME/lib).
If you use ant 1.6.0 or superior, you can then simply go to the src/example/hello-ivy dir and run ant: if the build is successful, you have successfully installed Ivy !
So I download ant and unpack it to the C drive. Now I copy ivy jar file which I am assuming is the ivy-2.0.0.jar which is in the main directory (C:\apache-ivy-2.0.0) to (C:\apache-ivy-2.0.0\lib).
I am using the lastest version which is superior to 1.6.0. I go to the src/example/hello-ivy directory and see build.xml and  ivy.xml. How am I to run ant? The install guide mentions nothing about environment variables. I guess its just assumed that if your messing with ant you know all about them? So this is my guess. I need to set up an environment variable so that when in cmd and pointing to the C:\apache-ivy-2.0.0\src\example\hello-ivy directory and using the command "run ant" it knows what that command means and builds it?
Reply | Threaded
Open this post in threaded view
|

Re: SVN acquisition

Seidelin
You are downloading Ivy, not ANT . Ant is currently at version 1.7.1
Try again :)

When you have downloaded ANT, follow the install guide found here:
http://ant.apache.org/manual/index.html -> click "installing ant"