Detect java plugin and display a nicer error message.
authorXavier Ducrohet <xav@android.com>
Fri, 15 Mar 2013 19:52:25 +0000 (12:52 -0700)
committerXavier Ducrohet <xav@android.com>
Fri, 15 Mar 2013 20:17:43 +0000 (13:17 -0700)
commitd4a065bf63977197e2d9779459ce0306e34003cb
treeabd40e2fc4eb53b8cfd4e643de25a5ebd777691f
parented4fa8eac662b723d6b8c130815c514813e9fa44
Detect java plugin and display a nicer error message.

The android and Java plugin cannot both be applied but if they
are the error is hard to figure out what the root of the problem
is.

Change-Id: Ia3e76eb2b73c6fb0276593919d2530cbf98df180
gradle/src/main/groovy/com/android/build/gradle/BasePlugin.groovy
gradle/src/main/groovy/com/android/build/gradle/internal/BadPluginException.java [new file with mode: 0644]
gradle/src/test/groovy/com/android/build/gradle/AppPluginInternalTest.groovy