diff options
author | Xavier Ducrohet <xav@android.com> | 2011-01-31 13:09:08 -0800 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-01-31 19:44:26 -0800 |
commit | dec739da5551ddf52a8f3cff06c63de4aced2578 (patch) | |
tree | 9c89babb587086cb6b798e3f1aac2028000a2417 /eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/BaseProjectHelper.java | |
parent | 5f9527877e04cb6ce88c6178d67561a90bcee7dd (diff) | |
download | device_generic_opengl-transport-dec739da5551ddf52a8f3cff06c63de4aced2578.tar.gz device_generic_opengl-transport-dec739da5551ddf52a8f3cff06c63de4aced2578.tar.bz2 device_generic_opengl-transport-dec739da5551ddf52a8f3cff06c63de4aced2578.zip |
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
Diffstat (limited to 'eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/BaseProjectHelper.java')
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/BaseProjectHelper.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/BaseProjectHelper.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/BaseProjectHelper.java index 49a44d699..6485f9657 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/BaseProjectHelper.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/BaseProjectHelper.java @@ -53,6 +53,7 @@ import org.eclipse.ui.texteditor.IDocumentProvider; import org.eclipse.ui.texteditor.ITextEditor; import java.util.ArrayList; +import java.util.List; /** * Utility methods to manipulate projects. @@ -73,7 +74,7 @@ public final class BaseProjectHelper { * @param javaProject * @return a list of path relative to the workspace root. */ - public static ArrayList<IPath> getSourceClasspaths(IJavaProject javaProject) { + public static List<IPath> getSourceClasspaths(IJavaProject javaProject) { ArrayList<IPath> sourceList = new ArrayList<IPath>(); IClasspathEntry[] classpaths = javaProject.readRawClasspath(); if (classpaths != null) { @@ -91,7 +92,7 @@ public final class BaseProjectHelper { * @param project * @return a list of path relative to the workspace root. */ - public static ArrayList<IPath> getSourceClasspaths(IProject project) { + public static List<IPath> getSourceClasspaths(IProject project) { IJavaProject javaProject = JavaCore.create(project); return getSourceClasspaths(javaProject); } |