mozilla

Revision 46463 of Downloading Source Archives

  • Revision slug: Developer_Guide/Source_Code/Downloading_Source_Archives
  • Revision title: Downloading Source Archives
  • Revision id: 46463
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment correct link to TOC; 1 words added, 1 words removed

Revision Content

{{ :en/Developer_Guide/Build_Instructions/TOC() }}

The Mozilla source code can be obtained either by downloading a source archive, or by using a CVS (source control) client. If you are just starting out, or you wish to build a particular Mozilla product release, downloading a source archive is recommended. Otherwise, get the Mozilla Source Code Via Mercurial (for Firefox) or Comm-central Source Code via Mercurial (for Thunderbird, SeaMonkey and Firefox).

Before attempting a build, please review the system requirements and build instructions.

License

Licensing information for the source code is on our licensing page.

Download

Releases

The source code for a release can be found on the FTP server in the "source" subdirectory of the release you want to acquire. The directory structure on the FTP server is as follows:

PROJECT/releases/RELEASE/source/

where names not in all uppercase are verbatim. PROJECT has to be replaced by e.g. firefox or thunderbird, and RELEASE by e.g. 1.5.0.3 or bonecho. The base for such a path is ftp.mozilla.org/pub/mozilla.org/. Some projects do not provide source code via FTP e.g. bonsai - in this case, you should use CVS (if possible). Specific versions of the applications are accessible with specific CVS Tags.

The easiest way to find the source code of the release you want is to start at ftp://ftp.mozilla.org/pub/mozilla.org/, and navigate your way through to it, bearing in mind the directory structure convention listed above. To navigate the FTP server, use either a browser like Firefox or an FTP client of your choice.

For example, the project Firefox release 2.0.0.4 source code can be found in ftp://ftp.mozilla.org/pub/mozilla.or....0.0.4/source/. That combines the base URL, ftp://ftp.mozilla.org/pub/mozilla.org/ with the PROJECT = firefox, /releases/, RELEASE= 2.0.0.4 and finally /source/.

The entire source tree is not available for download over FTP.

Should the ftp links fail, try the HTTP server.

Nightlies

At the moment, source tarballs of the nightly snapshots are not provided. Currently we don't have nightly source tarballs: You can download a trunk nightly source tarball from http://ftp.mozilla.org/pub/mozilla.org where? This tarball will have the CVS files prepopulated so that the tarball can be updated from anonymous CVS.

Unpack

Source code is packaged as bzipped tarballs. This means that you must have tar along with bzip2 installed, since the -j flag in the commands listed below means the archive is first being unpacked with bzip2. To unpack a tarball from a unix-like shell (or the cygwin shell), type:

tar -xjf <source-file.tar.bz2>

Or, if you want to see the files extracted,

tar -xjfv <source-file.tar.bz2>

Note for Windows users: using WinRAR or WinZip to unpack source archives will not work. WinZip does not support *.bz2 files, and the archive contains zero-length files which are not unpacked properly. For windows, try 7-zip software.

{{ languages( { "de": "de/Entwicklerhandbuch/Quelltexte/Mozilla_Quelltexte_herunterladen", "es": "es/Descargar_el_c\u00f3digo_fuente_de_Mozilla", "fr": "fr/T\u00e9l\u00e9chargement_du_code_source_de_Mozilla", "ja": "ja/Mozilla_Source_Code_(HTTP//FTP)" } ) }}

Revision Source

<p>{{ :en/Developer_Guide/Build_Instructions/TOC() }}</p>
<p>The Mozilla source code can be obtained either by downloading a source archive, or by using a CVS (source control) client. If you are just starting out, or you wish to build a particular Mozilla product release, downloading a source archive is recommended. Otherwise, get the <a class="internal" href="/En/Developer_Guide/Source_Code/Mercurial" title="en/Mozilla Source Code (Mercurial)">Mozilla Source Code Via Mercurial</a> (for Firefox) or <a class="internal" href="/En/Developer_Guide/Source_Code/Getting_comm-central" title="En/Comm-central source code (Mercurial)">Comm-central Source Code via Mercurial</a> (for Thunderbird, SeaMonkey and Firefox).</p>
<p>Before attempting a build, please review the <a href="/En/Developer_Guide/Build_Instructions" title="en/Build_Documentation">system requirements and build instructions</a>.</p>
<h2>License</h2>
<p>Licensing information for the source code is on our <a class="external" href="http://www.mozilla.org/MPL/#source-code">licensing page</a>.</p>
<h2>Download</h2>
<h3>Releases</h3>
<p>The source code for a release can be found on the <a class="link-ftp" href="ftp://ftp.mozilla.org/pub/mozilla.org/">FTP server</a> in the "<code>source</code>" subdirectory of the release you want to acquire. The directory structure on the FTP server is as follows:</p>
<pre class="eval">PROJECT/releases/RELEASE/source/
</pre>
<p>where names not in all uppercase are verbatim. <code>PROJECT</code> has to be replaced by e.g. <code>firefox</code> or <code>thunderbird</code>, and <code>RELEASE</code> by e.g. <code>1.5.0.3</code> or <code>bonecho</code>. The base for such a path is <code>ftp.mozilla.org/pub/mozilla.org/</code>. Some projects do not provide source code via FTP e.g. <code>bonsai</code> - in this case, you should use <a href="/En/Developer_Guide/Source_Code/CVS" title="en/Mozilla_Source_Code_(CVS)">CVS</a> (if possible). Specific versions of the applications are accessible with specific <a href="/en/CVS_Tags" title="en/CVS_Tags">CVS Tags</a>.</p>
<p>The easiest way to find the source code of the release you want is to start at <a class=" link-ftp" href="ftp://ftp.mozilla.org/pub/mozilla.org/" rel="freelink">ftp://ftp.mozilla.org/pub/mozilla.org/</a>, and navigate your way through to it, bearing in mind the directory structure convention listed above. To navigate the FTP server, use either a browser like Firefox or an FTP client of your choice.</p>
<p>For example, the project Firefox release 2.0.0.4 source code can be found in <a class=" link-ftp" href="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.4/source/" rel="freelink">ftp://ftp.mozilla.org/pub/mozilla.or....0.0.4/source/</a>. That combines the base URL, <a class=" link-ftp" href="ftp://ftp.mozilla.org/pub/mozilla.org/" rel="freelink">ftp://ftp.mozilla.org/pub/mozilla.org/</a> with the PROJECT = <code>firefox</code>, <code>/releases/</code>, RELEASE= <code>2.0.0.4</code> and finally <code>/source/</code>.</p>
<p>The entire source tree is not available for download over FTP.</p>
<p>Should the <code>ftp</code> links fail, try the <a class="external" href="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/">HTTP server</a>.</p>
<h3>Nightlies</h3>
<p>At the moment, source tarballs of the nightly snapshots are not provided. <span class="comment">Currently we don't have nightly source tarballs: You can download a trunk nightly source tarball from <a class=" external" href="http://ftp.mozilla.org/pub/mozilla.org" rel="freelink">http://ftp.mozilla.org/pub/mozilla.org</a> where? This tarball will have the CVS files prepopulated so that the tarball can be updated from anonymous CVS.</span></p>
<h2>Unpack</h2>
<p>Source code is packaged as bzipped tarballs. This means that you must have <code>tar</code> along with <code>bzip2</code> installed, since the <code>-j</code> flag in the commands listed below means the archive is first being unpacked with <code>bzip2</code>. To unpack a tarball from a unix-like shell (or the cygwin shell), type:</p>
<pre class="eval">tar -xjf &lt;source-file.tar.bz2&gt;
</pre>
<p>Or, if you want to see the files extracted,</p>
<pre class="eval">tar -xjfv &lt;source-file.tar.bz2&gt;
</pre>
<p><strong>Note for Windows users:</strong> using WinRAR or WinZip to unpack source archives will not work. WinZip does not support *.bz2 files, and the archive contains zero-length files which are not unpacked properly. For windows, try <a class="external" href="http://www.7-zip.org/">7-zip software</a>.</p>
<p>{{ languages( { "de": "de/Entwicklerhandbuch/Quelltexte/Mozilla_Quelltexte_herunterladen", "es": "es/Descargar_el_c\u00f3digo_fuente_de_Mozilla", "fr": "fr/T\u00e9l\u00e9chargement_du_code_source_de_Mozilla", "ja": "ja/Mozilla_Source_Code_(HTTP//FTP)" } ) }}</p>
Revert to this revision