diff options
author | Raphael Moll <ralf@android.com> | 2012-09-11 13:02:08 -0700 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2012-09-11 13:02:08 -0700 |
commit | 4e278fe40f5379ba721bc4f5bc1088fbc8f637c1 (patch) | |
tree | f68636585d8dcddcc2636de07b21768a0f30077f /common | |
parent | a4da123702747e102396c6df40dc4f3d0c54fa77 (diff) | |
download | sdk-4e278fe40f5379ba721bc4f5bc1088fbc8f637c1.zip sdk-4e278fe40f5379ba721bc4f5bc1088fbc8f637c1.tar.gz sdk-4e278fe40f5379ba721bc4f5bc1088fbc8f637c1.tar.bz2 |
NPW Sample Wizard: list extras with a "sample" directory.
Some extras have just a single "sample" directory
instead of having a samples/<sample_name> directory.
Support this and list them as valid samples.
Change-Id: I25bc59db0b9853d98385cca98f70bf261558fd8b
Diffstat (limited to 'common')
-rw-r--r-- | common/src/com/android/SdkConstants.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/src/com/android/SdkConstants.java b/common/src/com/android/SdkConstants.java index 26db7aa..6f47fa9 100644 --- a/common/src/com/android/SdkConstants.java +++ b/common/src/com/android/SdkConstants.java @@ -247,6 +247,15 @@ public final class SdkConstants { public final static String FD_SAMPLES = "samples"; //$NON-NLS-1$ /** Name of the SDK extras folder. */ public final static String FD_EXTRAS = "extras"; //$NON-NLS-1$ + /** + * Name of an extra's sample folder. + * Ideally extras should have one {@link #FD_SAMPLES} folder containing + * one or more sub-folders (one per sample). However some older extras + * might contain a single "sample" folder with directly the samples files + * in it. When possible we should encourage extras' owners to move to the + * multi-samples format. + */ + public final static String FD_SAMPLE = "sample"; //$NON-NLS-1$ /** Name of the SDK templates folder, i.e. "templates" */ public final static String FD_TEMPLATES = "templates"; //$NON-NLS-1$ /** Name of the SDK Ant folder, i.e. "ant" */ |