diff options
| author | Dan Bornstein <> | 2009-03-30 11:26:55 -0700 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-30 11:26:55 -0700 |
| commit | 291fe153ba3b64dfb0472f1f53cee59c53f5da04 (patch) | |
| tree | fb1f4e5576cfb7b3f86969a8cb06cfc07ee3ae52 /dx | |
| parent | c485bbb8a8128a87774ce1db4143ac3a67d694c9 (diff) | |
| download | android_dalvik-291fe153ba3b64dfb0472f1f53cee59c53f5da04.tar.gz android_dalvik-291fe153ba3b64dfb0472f1f53cee59c53f5da04.tar.bz2 android_dalvik-291fe153ba3b64dfb0472f1f53cee59c53f5da04.zip | |
AI 143492: Another crank of the --core-library wheel.
Automated import of CL 143492
Diffstat (limited to 'dx')
| -rw-r--r-- | dx/src/com/android/dx/command/dexer/Main.java | 63 |
1 files changed, 44 insertions, 19 deletions
diff --git a/dx/src/com/android/dx/command/dexer/Main.java b/dx/src/com/android/dx/command/dexer/Main.java index 224926ed6..58339a171 100644 --- a/dx/src/com/android/dx/command/dexer/Main.java +++ b/dx/src/com/android/dx/command/dexer/Main.java @@ -346,25 +346,50 @@ public class Main { DxConsole.err.println("\ntrouble processing \"" + name + "\":"); DxConsole.err.println("\n" + - "Attempt to include a core VM class in something other " + - "than a core library.\n" + - "It is likely that you have attempted to include the " + - "core library from a desktop\n" + - "virtual machine into an application, which will most " + - "assuredly not work. If\n" + - "you really intend to build a core library -- which is "+ - "only appropriate as\n" + - "part of creating a full virtual machine binary, as " + - "opposed to compiling an\n" + - "application -- then use the \"--core-library\" option " + - "to suppress this error\n" + - "message. If you go ahead and use \"--core-library\" " + - "but are in fact building\n" + - "an application, then please be aware that your build " + - "will still fail at some\n" + - "point; you will simply be denied the pleasure of " + - "reading this helpful error\n" + - "message."); + "Attempt to include a core class in something other than a " + + "core\n" + + "library. It is likely that you have attempted to include " + + "in an\n" + + "application the core library (or a part thereof) from a " + + "desktop\n" + + "virtual machine. This will most assuredly not work. At a " + + "minimum, it\n" + + "jeopardizes the compatibility of your app with future " + + "versions of the\n" + + "platform. It is also often of questionable legality.\n" + + "\n" + + "If you really intend to build a core library -- which is " + + "only\n" + + "appropriate as part of creating a full virtual machine " + + "distribution,\n" + + "as opposed to compiling an application -- then use the\n" + + "\"--core-library\" option to suppress this error message.\n" + + "\n" + + "If you go ahead and use \"--core-library\" but are in " + + "fact building an\n" + + "application, then be forewarned that your application " + + "will still fail\n" + + "to build or run, at some point. Please be prepared for " + + "angry customers\n" + + "who find, for example, that your application ceases to " + + "function once\n" + + "they upgrade their operating system. You will be to " + + "blame for this\n" + + "problem.\n" + + "\n" + + "If you are legitimately using some code that happens to " + + "be in a core\n" + + "package, then the easiest alternative you have is to " + + "repackage that\n" + + "code. That is, move the classes in question into your " + + "own package\n" + + "namespace. This means that they will never be in " + + "conflict with core\n" + + "system classes. If you find that you cannot do this, " + + "then that is an\n" + + "indication that the path you are on will ultimately " + + "lead to pain,\n" + + "suffering, grief, and lamentation."); errors++; throw new StopProcessing(); } |
