instructions.html (61 lines of code) (raw):
<html>
<title>Setup Instructions for the Google API Client Library for Java</title>
<body>
<h2>Setup Instructions for the Google API Client Library for Java</h2>
<h3>Browse Online</h3>
<ul>
<li><a
href="http://code.google.com/p/google-api-java-client/source/browse/">Browse
Source</a></li>
</ul>
<h3>Checkout Instructions</h3>
<p><b>Prerequisites:</b> install <a href="http://java.com">Java 6</a>, <a
href="http://mercurial.selenic.com/">Mercurial</a> and <a
href="http://maven.apache.org/download.html">Maven</a>. You may need to set
your <code>JAVA_HOME</code>.</p>
<pre><code>git clone https://github.com/google/google-http-java-client.git
cd google-api-java-client
mvn install</code></pre>
There are a few named branches:
<ul>
<li>The "master" branch has the development of the next release. To switch to this
branch, run: <pre><code>git checkout master
mvn clean install</code></pre></li>
</ul>
<h3>Setup Project in Eclipse 3.5</h3>
<p><b>Prerequisites:</b> install <a href="http://www.eclipse.org/downloads/">Eclipse</a>,
the <a href="http://javaforge.com/project/HGE">Mercurial plugin</a>, the <a
href="http://m2eclipse.sonatype.org/installing-m2eclipse.html">Maven
plugin</a>, and the <a
href="http://developer.android.com/sdk/eclipse-adt.html#installing">Android
plugin</a>.</p>
<ul>
<li>Setup Eclipse Preferences
<ul>
<li>Window > Preferences... (or on Mac, Eclipse > Preferences...)</li>
<li>Select Maven
<ul>
<li>check on "Download Artifact Sources"</li>
<li>check on "Download Artifact JavaDoc"</li>
</ul>
</li>
<li>Select Android
<ul>
<li>setup SDK location</li>
</ul>
</li>
</ul>
</li>
<li>Import projects
<ul>
<li>File > Import...</li>
<li>Select "General > Existing Project into Workspace" and click
"Next"</li>
<li>Click "Browse" next to "Select root directory", find <code><i>[someDirectory]</i>/google-api-java-client</code>
and click OK</li>
<li>Click "Next" and "Finish"</li>
</ul>
</li>
</ul>
</body>
</html>