No bug - Add skeleton AndroidEclipse backend build docs. r=me
authorNick Alexander <>
Tue, 18 Feb 2014 22:28:01 -0800
changeset 169816 468d4ef7c1928aeb14b07b35722cbac292d7d9ec
parent 169815 94df5532ffdfeb05d15c0500863f077cb93858df
child 169817 f47a37f5975213dbaad9ae267144f394e1fa0ded
push id270
push dateThu, 06 Mar 2014 09:24:21 +0000
No bug - Add skeleton AndroidEclipse backend build docs. r=me DONTBUILD NPOTB
new file mode 100644
--- /dev/null
+++ b/build/docs/androideclipse.rst
@@ -0,0 +1,89 @@
+.. _build_androideclipse:
+Android Eclipse Projects
+The build system contains alpha support for generating Android Eclipse
+project files to aid with development.
+To generate Android Eclipse project files, you'll need to have a fully
+built and packaged tree::
+   mach build && mach package
+(This is because Eclipse itself packages an APK containing
+``omni.ja``, and ``omni.ja`` is only assembled during packaging.)
+Then, simply generate the Android Eclipse build backend::
+   mach build-backend -b AndroidEclipse
+If all goes well, the path to the generated projects should be
+printed (currently, ``$OBJDIR/android_eclipse``).
+To use the generated Android Eclipse project files, you'll need to
+have a recent version of Eclipse (see `Tested Versions`_) with the
+`Eclipse ADT plugin
+installed. You can then import all the projects into Eclipse using
+*File > Import ... > General > Existing Projects into Workspace*.
+Updating Project Files
+As you pull and update the source tree, your Android Eclipse files may
+fall out of sync with the build configuration. The tree should still
+build fine from within Eclipse, but source files may be missing and in
+rare circumstances Eclipse's index may not have the proper build
+To account for this, you'll want to periodically regenerate the
+Android Eclipse project files. You can do this by running ``mach build
+&& mach package && mach build-backend -b AndroidEclipse`` from the
+command line. It's a good idea to refresh and clean build all projects
+in Eclipse after doing this.
+In future, we'd like to include an Android Eclipse run configuration
+or build target that integrates updating the project files.
+Currently, regeneration rewrites the original project files. **If
+you've made any customizations to the projects, they will likely get
+overwritten.** We would like to improve this user experience in the
+If Eclipse's builder gets confused, you should always refresh and
+clean build all projects. If Eclipse's builder is continually
+confused, you can see a log of what is happening at
+If you run into memory problems executing ``dex``, you should
+`Increase Eclipse's memory limits <>`_.
+The produced Android Eclipse project files are unfortunately not
+portable. Please don't move them around.
+Structure of Android Eclipse projects
+The Android Eclipse backend generates several projects spanning Fennec
+itself and its tests. You'll mostly interact with the *Fennec* project
+In future, we'd like to expand this documentation to include some of
+the technical details of how the Eclipse integration works, and how to
+add additional Android Eclipse projects using the ````
+Tested Versions
+============    ====================================    =================
+OS              Version                                 Working as of
+============    ====================================    =================
+Mac OS X        Luna (Build id: 20130919-0819)          February 2014
+Mac OS X        Kepler (Build id: 20131219-0014)        February 2014
+============    ====================================    =================
--- a/build/docs/index.rst
+++ b/build/docs/index.rst
@@ -18,16 +18,17 @@ Important Concepts
+   androideclipse
 mozbuild is a Python package containing a lot of the code for the
 Mozilla build system.
 .. toctree::