Commit Graph

22 Commits

Author SHA1 Message Date
Treehugger Robot
c65b20e6b6 Merge "idegen: traversing all vendor-specific excludes" 2022-01-17 12:55:14 +00:00
utzcoz
0609c877cf Remove unused imports from Main.java
Test: mm.

Change-Id: I22589ca03914833b569c969c011a932f9c564dca
Signed-off-by: utzcoz <utzcoz@gmail.com>
2020-05-09 17:08:36 +08:00
Mikhail Malakhov
926b01325d idegen: traversing all vendor-specific excludes
Allow vendors to have your own idegen "excluded-paths" files.

Change-Id: I842ce4f89bcb43a8bcfde827e4683d11c29f0624
2020-03-22 11:49:40 +03:00
Colin Cross
9502c0fe6a Update idegen for guava 27.1
Objects.toStringHelper has been replaced with
MoreObjects.toStringHelper.

Bug: 130306229
Test: m checkbuild
Change-Id: I0110d355aa071f3f5c8174c7dfa3c8403ac8f596
2019-04-11 16:38:07 -07:00
Enrico Granata
fbe91c90cf idegen fails to build a correct dependency graph if one of the submodules it identifies lacks an Android.mk file
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
2018-04-04 14:11:58 -07:00
Eino-Ville Talvala
6a65b38d23 Idegen: Don't assume a backslash is preceded by a space
Only remove a backslash, nothing more. Otherwise a line with just
a backslash will cause a crash.

Bug: 28218145
Change-Id: I540a2508ba1fbd3f03cf8258d1fe4b99e0472c88
2016-04-15 14:06:53 -07:00
Ying Wang
8ee57970d5 Skip nonexistent files/directories (e.g. broken symlinks) in idegen.jar.
We may have broken symlinks in the experimental directories. They
shouldn't fail the idegen.

Bug: 25389477
Change-Id: Ie94ebba9225c928a0990347da259ed7bbd4c9fe1
2015-11-02 17:23:02 -08:00
Xiaohui Chen
6984d17aa7 intellij-gen: Fix test source dir tag.
Change-Id: Iba8ab25f27f72088088b06ea180bc3b8e912e5c9
2015-08-24 22:11:59 -07:00
Xiaohui Chen
3cd9e24e0c Fix exception in MakeFileParser
The code currently tries to parse all "$" as variables.  Now narrow it
down to only "$()" as it should.

Bug: 23155276
Change-Id: I1732ce757a9f7d611e90138b595a0aa1d3ce6009
2015-08-12 20:38:50 +00:00
Xiaohui Chen
e472fe6d27 intellij-gen: fix git root problem
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
2015-04-29 20:50:18 -07:00
Xiaohui Chen
27639ae3db intellij-gen: fix framework dependencies
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
2015-04-06 14:19:13 -07:00
Paul Crowley
7fdedf010d Refactor the way we handle directories in traverse.
Bug: 18064146
Change-Id: I45fba9c2978bc0c8f23804c730ab631da759ac70
2014-11-03 04:28:54 +00:00
Sky Faber
e83d6400fb idegen: Skip directories named *.java when parsing source.
Change-Id: I8a6700ebcc198851b80de4832a43d147dc887f3a
2014-07-23 13:50:52 -07:00
Chiao Cheng
c8201d5e84 Overhaul of intellij-gen script.
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
2014-03-17 12:52:43 -07:00
Chiao Cheng
6818901ea0 Add support for distribution folder.
Changed template directory to be dynamically looked up.

Change-Id: I89b96581e842574e1c7ad36e8633d3e787f488c2
2013-03-01 10:55:30 -08:00
Chiao Cheng
d7a603c968 Allow bash scripts to work within a distributation folder.
- Fixed NullPointerException when module name not found.

Change-Id: I8f9b29f047ff90995d4cccc6b4b518bfbf026570
2013-02-28 15:25:05 -08:00
Chiao Cheng
ac0a18e095 Adding new script to generate Intellij projects.
- 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
2012-08-08 17:23:48 -07:00
Jake Hamby
ad716fc412 Exclude some non-source folders from IntelliJ projects.
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
2011-08-09 16:00:35 -07:00
Debajit Ghosh
5f2ff00773 fixing NPE that i see on my Mac when running idegen.sh 2009-09-01 22:20:31 -07:00
The Android Open Source Project
52d4c30ca5 auto import from //depot/cupcake/@135843 2009-03-03 19:29:09 -08:00
The Android Open Source Project
d4aee0c0ca auto import from //depot/cupcake/@135843 2009-03-03 18:28:16 -08:00
The Android Open Source Project
e943f2fd8e Code drop from //branches/cupcake/...@124589 2008-12-17 18:04:04 -08:00