History log of /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/PreCompilerDeltaVisitor.java
Revision Date Author Comments
a462008893000a00ea8070b463e915c341faa269 28-Aug-2013 Xavier Ducrohet <xav@google.com> RS Support mode in ADT.

Change-Id: Ib8e1e60a972ce99294040c3cb7595927d52b5717
12d4581faa6438941e65a9dc83213be34c6ca970 13-Sep-2012 Tor Norbye <tnorbye@google.com> Constants refactoring.

This changeset moves most constants into the SdkConstants
class, and gets rid of AndroidConstants and LintConstants.
It also migrates all non-ADT specific constants from
AdtConstants into SdkConstants. It furthermore moves various
other constants (such as those in XmlUtils and ValuesDescriptors)
into the constants class. It also fixes the modifier order
to be the canonical modifier order (JLS 8.x).

Finally, it removes redundancy and combines various constant
aliases such that we don't have both NAME_ATTR and ATTR_NAME
pointing to "name", etc.

Change-Id: Ifd1755016f62ce2dd80e5c76130d6de4b0e32161
81cefe2a26dd6db8a878e30874d12cdcbff0e83b 11-Aug-2012 Xavier Ducrohet <xav@android.com> More refactoring.

Move stuff out of sdklib into common and ide_common.
Remove androidprefs and move the one class into common.

Change-Id: I71d126a13cf2ba413692e29616f4968a37d7b33a
d542e65fe2c7fc968c646f43c2d99d52ca3f380a 09-May-2012 Xavier Ducrohet <xav@android.com> Manifest merge for ADT.

Change-Id: I635098594605af497a8b7d244e502385b8f34d1e
ab36f4e7488358dea4ab6b54ee2b7bef3da0232b 21-Dec-2011 Tor Norbye <tnorbye@google.com> Update SDK codebase to JDK 6

This changeset makes the SDK codebase compile with source=1.6 (which
means it also requires JDK 6). This means that methods implementing an
interface requires @Override's. It also means we can start using APIs
like the ArrayDeque class and methods like String#isEmpty().

This changeset looks big but the change is trivial: it's basically
adding @Override in all the places that need it, along with some other
automatic Eclipse cleanup in certain files (such as reordering imports
where they were incorrectly ordered (because older versions of Eclipse
didn't always handle inner classes right)), as well as cleaning up
trailing whitespace and removing some $NON-NLS-1$ markers on lines
where there aren't any string literals anymore.

This changeset also sets the source and target JDK level to 6 in the
Eclipse compiler .settings file, and synchronizes this file to all the
other Eclipse SDK projects.

Change-Id: I6a9585aa44c3dee9a5c00739ab22fbdbcb9f8275
882e673462566249a538d72b16917bc6cac8315d 18-Aug-2011 Josiah Gaskin <josiahgaskin@google.com> Precompilation only executes AAPT when necessary

This change adds resource tracking to the ResourceManager.
Each ResourceRepository now has new methods:

void markForIdRefresh() to set the repository as "dirty"
boolean needsIdRefresh() to check whether the repository is dirty
void setIdsRefreshed() to set the repository as "clean"

During the precompilation step, the PreCompiler will query the
ResourceManager to see if any of the repositories included in the build
are marked as dirty. AAPT will only be run if one or more dirty repositories
are found.

Repositories are marked as clean when R.java is regenerated and IDs are
set in ProjectResources.

Change-Id: I575ab819702508eacd247b282c3de8979f2f0ab9
c3105b949cd2a0f6cbf8a12ec4f30e49b5b5a502 25-Feb-2011 Xavier Ducrohet <xav@android.com> Rename AndroidConstants -> AdtConstants.

These are constants specific to ADT.

There'll be an AndroidConstants class in common.jar with
more generic android constant values.

Change-Id: I8368920f92c28cbfb87098087bf01f2d2cdee095
f2acae181fdbbf644915cfa0ddd571b24eda440a 01-Feb-2011 Xavier Ducrohet <xav@android.com> Make up better class names.

JavaGenerator -> SourceProcessor
GeneratorDeltaVisitor -> SourceChangeHandler
NonJavaFileBundle -> SourceFileData

Change-Id: Idaacbef34007a1af730500d8009241683ee9e37b
9bf7eaf8969ed3c28467aae1f7d7debf5bc1917c 01-Feb-2011 Xavier Ducrohet <xav@android.com> Improvements to RenderScript support:

- change dependency file location to be in the gen folder
in the same package as the source file. This prevents collisions
if there are two classes named the same in different packages
or source folders.

- Now that the dependency files are visible, track their deletion
and force recompilation if this happens

- Missing dependency files during generator initialization force
a recompilation of the source file.

- Prevent packaging from taking .rs, .rsh, and .d files from the
source folders. This also impacts the Ant build system.

Change-Id: Iede9193f67370e1784bd8ba661198bbf99238074
ea803caeec48eb03db3b93c8098786a439199d54 01-Feb-2011 Xavier Ducrohet <xav@android.com> Add Renderscript support to the ADT builders.

This uses the new JavaGenerator mechanism so that all that's needed
is to run llvm-rs-cc on a given list and parsing the dependency file
that's created.

Change-Id: Ib4928c980422dfe1944bc720c77bf6ae5be4c34a
dec739da5551ddf52a8f3cff06c63de4aced2578 31-Jan-2011 Xavier Ducrohet <xav@android.com> Change the JavaGenerator to handle output and dependencies.

Previously, the generator only handled a list of files to compile
and a list of files that were removed.

Now the Generator provides all that needed to do incremental
builders with known state. On top of providing a default
deltavisitor it handles file dependency and list of output
files.

The aidl generator was updated to use this, and the renderscript
generator will use the same mechanism.

Also fixed the abortOnBadSetup which through CoreException which did
nothing to stop later builders (unlike my comments said) and
poluted the workspace log with worthless messages.

Change-Id: Ib954beb9674f1387c022f926388adb8faf6cdac2
5e39089070b438ba090ac4dee83aaf71dc69ce90 31-Jan-2011 Xavier Ducrohet <xav@android.com> Refactor aidl handling in its own class.

It extends a new base class that will serve as a base
class for the one handling renderscript files.

Change-Id: Ibef0c4b9a792fe52bf7b70bf5d24f76a15cb65c9
59f8d5012426884e40b77b02a7c3274eb66019a1 02-Sep-2010 Xavier Ducrohet <xav@android.com> ADT refactor the builders into their own package.

Put the growing list of generic build classes
into the main build package.

Change-Id: I65d7067bb2547d7cc9b71674f4df8a6778dd8ac8