Difference between revisions of "IDempiere/Download the Code"

From WikiQSS
(release 1.0c)
(moved)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- breadcrumb -->
+
Moved to [http://wiki.idempiere.org/en/Download_the_Code http://wiki.idempiere.org/en/Download_the_Code]
<font size=-2>
 
&lArr;
 
[[IDempiere|Table of Contents]] |
 
[[IDempiere/Install_Prerequisites_on_Ubuntu|Install Prerequisites on Ubuntu]] |
 
Download the Code |
 
[[IDempiere/Setting_up_Eclipse|Setting up Eclipse]]
 
&rArr;
 
</font>
 
 
 
== Cloning iDempiere ==
 
 
 
iDempiere sources are hosted at [http://bitbucket.org/idempiere/idempiere Atlassian Bitbucket], you can download the complete project with:
 
 
 
cd $HOME/sources
 
hg clone https://bitbucket.org/idempiere/idempiere
 
 
 
Please replace $HOME/sources with the folder where you wish to download the whole sources, at least 2 GB are required.
 
 
 
=== Tip: Incremental clone ===
 
 
 
It is reported repeatedly that hg clone operation tends to fail because of bandwidth.
 
 
 
Mercurial doesn't support directly to do incremental clone, so the trick is to clone the first revision and then incrementally pull sets of revisions, for example:
 
 
 
hg clone -r 1 https://bitbucket.org/idempiere/idempiere
 
cd idempiere
 
hg pull -r 100 -u
 
hg pull -r 200 -u
 
hg pull -r 300 -u
 
hg pull -r 400 -u
 
hg pull -r 500 -u
 
... and so on until the actual revision of the repository
 
 
 
=== Tip: Zipped full repo ===
 
 
 
Another tip for downloading over slow lines is to download the whole repo from [http://sourceforge.net/projects/idempiere/files/v1.0c/source-repo/idempiere_hgrepo_v1.0c.zip/download idempiere_hgrepo_v1.0c.zip].
 
 
 
Unzip the file, and then do
 
hg -v pull -u
 
 
 
== Local experimentation clone ==
 
 
 
Once you have downloaded the sources from bitbucket you can easily clone locally your downloaded repository (for example for experimentation purposes) with an instruction like this:
 
 
 
cd $HOME/sources
 
hg clone idempiere myexperiment
 
 
 
This way you could experiment with a local clone instead of the downloaded from bitbucket (in order to keep it pristine).
 
 
 
== Keeping up to date ==
 
 
 
When you want to synchronize your local clone with bitbucket again you can do it with:
 
 
 
cd $HOME/sources/idempiere
 
hg pull -u
 
 
 
and/or, similarly for your local clone
 
 
 
cd $HOME/sources/myexperiment
 
hg pull -u
 
 
 
Note that first one will pull from bitbucket, and second will pull from your local clone.
 

Latest revision as of 13:32, 7 June 2015