Objects.toStringHelper has been replaced with
MoreObjects.toStringHelper.
Bug: 130306229
Test: m checkbuild
Change-Id: I0110d355aa071f3f5c8174c7dfa3c8403ac8f596
The current failure mode is for the tool to throw an Exception and stop.
This commit makes it possible for the tool to continue in the face of such a missing .mk file.
Test: manual
Change-Id: I42991fe7cda07e0fae2eb037649d88133afde1c7
At the moment the script looks for the jar iside the out dir.
However, if the our dir is set to a different directory via OUT_DIR_COMMON_BASE
the script does not notice that, and errors out saying a build is
needed.
This commits checks if the OUT_DIR_COMMON_BASE is set, then searches the jar in the proper path.
If OUT_DIR_COMMON_BASE is unset, search in "out" like it did before.
Test: Build with OUT_DIR_COMMON_BASE set and unset and verify idegen works in both cases.
Change-Id: Icfcf41af13139bd81f8589bb900debe5ee616022
See build/soong/README.md for more information
Also moves rmtypedefs to use the guava prebuilt from
prebuilts/misc/common.
Test: m checkbuild
Change-Id: I9298967275ca40f8d50841b204cd40612a8a5f56
This sets it to 1.8 instead of 1.7 as Android now allows using
1.8 java language.
Bug: 38140365
Test: Ran idegen and now java language is set to 1.8 in Intellij
Change-Id: I1a1f0970357f42c3bc5ded9b3f17692812ea130a
Only remove a backslash, nothing more. Otherwise a line with just
a backslash will cause a crash.
Bug: 28218145
Change-Id: I540a2508ba1fbd3f03cf8258d1fe4b99e0472c88
Previously, After idegen command executed, Android Studio
and Intellij didn't start with Android facet.
Android Device Monitor, AVD, etc are necessary,
so edit template android.iml for opening project with them.
Change-Id: I7734e45afc268aa4eabdd96854c775452f8426a7
Signed-off-by: dbgsprw <dbgsprw@gmail.com>
The code currently tries to parse all "$" as variables. Now narrow it
down to only "$()" as it should.
Bug: 23155276
Change-Id: I1732ce757a9f7d611e90138b595a0aa1d3ce6009
We may have broken symlinks in the experimental directories. They
shouldn't fail the idegen.
Bug: 25389477
Change-Id: Ie94ebba9225c928a0990347da259ed7bbd4c9fe1
The common usage from a couple fellow engineers shows that we tend to
put the idea project right at the module root. This update simplifies
this common use case.
Change-Id: I6020a4e13e376fa2f7641f36a5d4b1b8637fbd86
The code currently tries to parse all "$" as variables. Now narrow it
down to only "$()" as it should.
Bug: 23155276
Change-Id: I1732ce757a9f7d611e90138b595a0aa1d3ce6009
Some module dir may not be the git root itself. Some modules may
share the same git root. e.g. "development/tools/apkcheck" module's
git root is "development/". So we need to look at the parent
directories too when going through all the modules.
Change-Id: Id2ce859efc0d5f6286eb8545fd6a21244e7d40a6
1.7 language features seems already used in Android codebase. Let's
move the generated project config to match that.
Change-Id: I0269f2e73417393bcd7894356caaea5c48b9d0e1
FrameworkModule has special case dependencies generation. It is
currently missing some. This cl fixes that and also fixed an edge case
when finding src directories.
Change-Id: I1593d92530715f3bbc8683cc32164fde4a29f0d8
Overall much better at find proper dependencies.
* No more need for aggregate modules.
* Source file searching.
* Make file token substitution.
* Inclusion src directories.
* Multi project/package support.
* Made framework module optional as some unbundled
branches do not include it.
Change-Id: Ie5ee66c488fc9141043137f716a3891f952bfe7f
- Creates modules and includes only dependencies that are needed by
the parent module instead of including the entire source tree. The
new structure makes intellij much more responsive and fast.
- Adds proper android facets when AndroidManifest.xml exists for
quick resource lookup.
- Automatically includes intermediates directory for generated R files.
- Exclusion of un-neccessary language resource folders from id lookups.
- Automatic vcs configuration for git roots.
- Multi-module make file support.
- Aggregate modules for multi-module make files.
Change-Id: I181670b269faa1cc3ab257692833821fab20f73c
Also excluding prebuilt jars from classpath. These include all
previous versions of the android sdk jars. Increased heap size to 800
so google intellij plugin does not complain. Changed default
configuration to use global code style insead of per project code
style.
Change-Id: If97550000fdc282cf6d506eb80b830ff4c1b87b9
Add some excludeFolder lines to android.iml generated by idegen.sh.
This removes a large number of non-Java files that IntelliJ would
otherwise have to stat and parse.
Change-Id: I362711daba6cc0c7ebec761d013c57c27a29d58d