aboutsummaryrefslogtreecommitdiff
path: root/website/setup
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-03-19 22:04:20 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-03-19 22:04:20 +0100
commit6ca2a91d6bb7054328a845771af0a4e618002f14 (patch)
tree60d10430eb53438ae25ed3b42899c06b4c33d50b /website/setup
parentd39623693b779634ea8b25cdc9792bc1ca3c880e (diff)
downloadlombok-6ca2a91d6bb7054328a845771af0a4e618002f14.tar.gz
lombok-6ca2a91d6bb7054328a845771af0a4e618002f14.tar.bz2
lombok-6ca2a91d6bb7054328a845771af0a4e618002f14.zip
Added documentation (and a minor tidbit of support) for android.
Diffstat (limited to 'website/setup')
-rw-r--r--website/setup/android.html90
1 files changed, 90 insertions, 0 deletions
diff --git a/website/setup/android.html b/website/setup/android.html
new file mode 100644
index 00000000..bbcc9c66
--- /dev/null
+++ b/website/setup/android.html
@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+<html><head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <script src="../logi/jQuery-all.js" type="text/javascript"></script>
+ <link rel="stylesheet" type="text/css" href="../logi/reset.css" />
+ <link rel="stylesheet" type="text/css" href="../index.css" />
+ <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
+ <meta name="description" content="Spice up your java" />
+ <title>Project Lombok</title>
+ <!--[if lt IE 7]><script type="text/javascript" src="../logi/iepngfix_tilebg.js"></script><![endif]-->
+</head><body>
+ <a id="forkMe" href="http://github.com/rzwitserloot/lombok"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
+ <div class="meat">
+ <h1><a href="/">Project Lombok</a> - android instructions</h1>
+ <div id="buttonBar" class="buttonBar">
+ <a class="button" href="../features/index.html">
+ <img src="../icon_overview.png" />
+ <span>Feature Overview</span>
+ </a>
+ <a class="button" href="http://groups.google.com/group/project-lombok">
+ <img src="../icon_discussion.png" />
+ <span>Discuss / Help</span>
+ </a>
+ <a class="button" href="http://wiki.github.com/rzwitserloot/lombok/contributing">
+ <img src="../icon_contribute.png" />
+ <span>Contribute</span>
+ </a>
+ <a class="button" href="http://code.google.com/p/projectlombok/issues/list">
+ <img src="../icon_bugs.png" />
+ <span>Report an issue</span>
+ </a>
+ <div class="downloadContainer">
+ <a class="downloadLink" id="downloadLink" href="../download.html">
+ <img src="../icon_download.png" />
+ <span>Download!</span>
+ </a>
+ <div class="versionInfo">
+ Version: @VERSION@ | <a href="../changelog.html">changelog</a>
+ </div>
+ </div>
+ </div>
+ <div class="downloadHelp">
+ <p>
+ Android development with lombok is possible. Lombok should be a compile-time only dependency, as otherwise
+ the entirety of lombok will end up in your DEX files, wasting precious space on android devices. Also, errors will occur due
+ to the native libraries present in lombok.jar itself. Unfortunately, android does not (yet) understand the concept of a
+ compile-time-only dependency, so you need to mess with your build files to make it work.
+ </p><p>
+ The instructions listed below are excerpts from <a href="https://github.com/excilys/androidannotations/wiki/Cookbook">The
+ AndroidAnnotations project cookbook</a>. You may wish to refer to that documentation for complete instructions; lombok is just
+ the equivalent to <code>androidannotations-VERSION.jar</code>; there is no <code>-api</code> aspect.
+ </p>
+ <h3>Eclipse</h3>
+ <div>
+ In eclipse, create a 'lightweight' lombok jar that contains only the annotations by running:
+ <pre>
+java -jar lombok.jar publicApi</pre>
+ Then, add this jar to your android project, and, as usual, install lombok into eclipse.
+ </div>
+ <h3>Ant</h3>
+ <div>
+ <ul>
+ <li>Find <code>build.xml</code> in <code>${ANDROID_SDK_ROOT}/tools/ant/build.xml</code> and copy the <code>-compile</code> target into the paste buffer.
+ <li>Copy this to the <code>build.xml</code> of your own project, right before the <code>&lt;import file="${sdk.dir}/tools/ant/build.xml"&gt;</code> line.
+ <li>Create a <code>compile-libs</code> directory in your own project and copy the complete <code>lombok.jar</code> to it.
+ <li>Now modify the <code>&lt;classpath&gt;</code> entry inside the <code>&lt;javac&gt;</code> task in the <code>-compile</code> target you just copied:<br />
+ add <code>&lt;fileset dir="compile-libs" includes="*.jar" /&gt;</code> to it.
+ </ul>
+ </div>
+ <h3>Maven</h3>
+ <div>
+ You should be able to just follow the normal <a href="../mavenrepo/index.html">lombok with maven instructions</a>.<br />
+ </div>
+ <div class="endBar">
+ </div>
+ <div class="footer">
+ <a href="../credits.html" class="creditsLink">credits</a> | Copyright &copy; 2009-2011 The Project Lombok Authors, licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT license</a>.
+ </div>
+ </div>
+ <script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+ </script>
+ <script type="text/javascript">
+ try {
+ var pageTracker = _gat._getTracker("UA-9884254-1");
+ pageTracker._trackPageview();
+ } catch(err) {}
+ </script>
+</body></html>